smiles.flavors {rcdk} | R Documentation |
Generate flag for customizing SMILES generation.
Description
The CDK supports a variety of customizations for SMILES generation including the use of lower case symbols for aromatic compounds to the use of the ChemAxon CxSmiles format. Each 'flavor' is represented by an integer and multiple customizations are bitwise OR'ed. This method accepts the names of one or more customizations and returns the bitwise OR of them. See CDK documentation for the list of flavors and what they mean.
Usage
smiles.flavors(flavors = c("Generic"))
Arguments
flavors |
A character vector of flavors. The default is
|
Value
A numeric representing the bitwise 'OR“ of the specified flavors
Author(s)
Rajarshi Guha rajarshi.guha@gmail.com
References
See Also
Examples
m <- parse.smiles('C1C=CCC1N(C)c1ccccc1')[[1]]
get.smiles(m)
get.smiles(m, smiles.flavors(c('Generic','UseAromaticSymbols')))
m <- parse.smiles("OS(=O)(=O)c1ccc(cc1)C(CC)CC |Sg:n:13:m:ht,Sg:n:11:n:ht|")[[1]]
get.smiles(m,flavor = smiles.flavors(c("CxSmiles")))
get.smiles(m,flavor = smiles.flavors(c("CxSmiles","UseAromaticSymbols")))