Learn R Programming

ChemmineR (version 2.24.2)

write.SMI: SMI export function

Description

Writes one or many molecules stored in a SMIset object to a SMILES file.

Usage

write.SMI(smi, file, cid = TRUE, ...)

Arguments

smi
object of class SMIset
file
name of SMILES file to write to
cid
if cid = TRUE the compound identifiers will be exported by appending them in tab-separated format to each SMILES string
...
option to pass on additional arguments

Details

...

References

SMILES (Simplified molecular-input line-entry system) format definition: http://en.wikipedia.org/wiki/Simplified_molecular-input_line-entry_system

See Also

Functions: write.SDF

Examples

Run this code
## Instance of SMIset class
data(smisample); smiset <- smisample

## Write objects of classes SMIset to file with and 
## without compound identifiers
# write.SMI(smiset[1:4], file="sub.smi", cid=TRUE)
# write.SMI(smiset[1:4], file="sub.smi", cid=FALSE)

Run the code above in your browser using DataLab