sdf2smiles | R Documentation |
SDFset
to character
Convert SDFset
to SMILES (character
)
Accepts compounds in an SDFset
container and returns the corresponding
SMILES (Simplified Molecular Input Line Entry Specification) strings as SMIset
object.
If ChemineOB is available then OpenBabel for the format conversion.
Otherwise the compound is submitted to the ChemMine Tools web service for conversion
with the Open Babel Open Source Chemistry Toolbox. If the input object
contains multiple items, only the first is converted.
sdf2smiles(sdf)
sdf |
A |
character |
for details see ?"character" |
Tyler Backman, Kevin Horan
Chemmine web service: http://chemmine.ucr.edu
Open Babel: http://openbabel.org
SMILES Format: http://en.wikipedia.org/wiki/Chemical_file_format#SMILES
## Not run:
## get a sample compound
data(sdfsample); sdfset <- sdfsample[1]
## convert to smiles
(smiles <- sdf2smiles(sdfset))
as.character(smiles)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.