Description Usage Arguments Value Author(s) See Also Examples
View source: R/BuildStructandSeries.R
This splits a range into n for the case where e.g. the total number of carbons is
known but multiple Rs exist. This assumes symmetrical filling, with remainders
added to the earlier groups. Used to feed into the buildSmiles
function
This function may perform strangely and needs testing.
1 | splitRrange(genSmiles, nR1toN)
|
genSmiles |
A "Generic" |
nR1toN |
The range for each R group (start-end,start-end, ...,start-end) or a single range. If a single range is given for n R groups, this is split to form a range for each R group. Warnings are produced if mismatches occur, in which case the input is returned. |
Returns the split range or original input for use in buildSmiles
Emma Schymanski <emma.schymanski@uni.lu>
1 2 3 4 5 6 7 8 | 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]"
splitRrange(test_smiles,"(1-37)")
splitRrange(test_smiles,"(1-38)")
splitRrange(test_smiles,"(1-39)")
splitRrange(test_smiles,"(1-40)")
splitRrange(test_smiles,"(3-40)")
splitRrange(test_smiles,"(1-3)")
splitRrange(test_smiles,"(16-22)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.