Description Usage Arguments Details Value See Also
View source: R/Functions_utilities.R
Use a data.frame with molecular formulas and combine them
1 2 | permutateMass(baseMass, modifications, sep = "\\|",
unmodifiedTag = "")
|
baseMass |
numeric mass value to permutate |
modifications |
data.frame with columns name, formula, min, max. |
sep |
separator between individual modifications in output; has to be escaped with \ if it is a special character for regex |
unmodifiedTag |
which tag to use for non-modified items. If NULL, will preceed modification tag with 0 (e.g. 0Me) |
More information
Columns that need to be in the modifications data.frame:
min minimum number of times this modification can be applied
max maximum number of times this modification can be applied
mass mass of this modification
tag label for this modification (will automatically be preceded by number of these modifications applied)
columns min and max should be the minimum and maximum times a modification is allowed in the combinations, can be positive, negative, or 0.
a data.fram, the mass in the resulting data.frame is the monoisotopic mass.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.