Description Usage Arguments Value Author(s) See Also Examples
View source: R/BuildStructandSeries.R
This function performs basic string manipulation on SMILES codes to generate
systematic homologues, facilitaing 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. This does not perform any advanced chemical processing.
Using large ranges over many R groups will result in combinatorial explosion; for
these cases structure generation is recommended. SMILES are built with the
RtoSMILES
function.
1 | buildSmiles(genSmiles, R1toN, nR1toN, ExtraAtoms_R1toN=NULL, RDB_R1toN=NULL)
|
genSmiles |
A "Generic" |
R1toN |
A vector containing 1 to n |
nR1toN |
The range for each R group (start-end,start-end, ...,start-end).
If a single range is given for n R groups, this should be split in advance with |
ExtraAtoms_R1toN |
(optional, to be removed from this function and handled in advance).
Extra atoms to be added to beginning or end of R group. Must be valid |
RDB_R1toN |
(optional, to be removed from this function and handled in advance).
Unsaturation to be added to beginning or end of R group. Must be valid |
Returns a vector containing the resulting SMILES codes
Emma Schymanski <emma.schymanski@uni.lu>
RtoSMILES
, splitRrange
, adjustRgroup
,
To view created SMILES: renderSMILES.CDKdepict
, renderSMILES.rcdk
.
1 2 | test_smiles <- "P(=O)(OC[C@H](COP(=O)(O)OC[C@H](OC(=O)[R2])COC(=O)[R1])O)(O)OC[C@H](OC(=O)[R4])COC(=O)[R3]"
buildSmiles(test_smiles,"(C,C,C,C)","(1-3,1-3,1-3,1-3)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.