Description Usage Arguments Value Author(s) See Also Examples
View source: R/BuildStructandSeries.R
This works behind the scenes of buildSmiles
on individual R groups, but can be
used independently. This performs basic string manipulation on SMILES codes to add
additional atoms (as valid SMILES codes) and unsaturations before or after R groups
prior to generation of systematic homologues with RtoSMILES. This facilitates the generation
of identifiers for structures that may not exist in databases for use in MS workflows.
This requires a decent understanding of SMILES as the text manipulation can have
unexpected consequences.
It is highly recommeded to view these structures to ensure the groups are added as intended.
1 | adjustRgroup(genSmiles,R_format,ExtraAtoms=NULL,RDB=NULL,R_range=NULL,atStart=TRUE)
|
genSmiles |
A "Generic" |
R_format |
The format of the R group to replace, including square brackets, e.g.
|
ExtraAtoms |
A valid |
RDB |
A number (Ring and Double Bond count) indicating the degree of unsaturations to add.
This number determines how many |
R_range |
The range for the R group (start-end). Will be corrected by |
atStart |
Default |
Returns a vector containing the resulting SMILES codes and, if range is given, the new min and max values for range.
Emma Schymanski <emma.schymanski@uni.lu>
buildSmiles
, splitRrange
, RtoSMILES
,
To view created SMILES: renderSMILES.CDKdepict
, renderSMILES.rcdk
.
1 2 3 4 5 6 7 8 | test_genSmiles <- adjustRgroup("OC(=O)[R]","[R]",ExtraAtoms="C(=O)")
test_genSmiles <- adjustRgroup("OC(=O)[R]","[R]",ExtraAtoms="C(Br)")
test_genSmiles <- adjustRgroup("OC(=O)[R]","[R]",RDB=2,atStart=FALSE)
buildCDKdepictURL(test_genSmiles)
# if the range is returned, need to only depict first entry
test_genSmiles <- adjustRgroup("OC(=O)[R]","[R]",ExtraAtoms="C(=O)",RDB=2,atStart=TRUE, R_range = c(4,6))
test_genSmiles <- adjustRgroup("OC(=O)[R]","[R]",RDB=2,atStart=TRUE, R_range = c(2,20))
buildCDKdepictURL(test_genSmiles[1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.