isopattern(isotopes, chemforms, threshold = 0.001, charge = FALSE,
emass = 0.00054858, plotit = FALSE, algo=1, rel_to = 0, verbose = TRUE,
return_iso_calc_amount = FALSE)
isotopes
.chemforms
or the second column in the value of check_chemform
rel_to
.
Set to 0
if all peaks shall be calculated.chemforms
.
Set to FALSE
for omitting any charge calculations.charge
is not set to FALSE
.TRUE/FALSE
?1
or 2
. See details.0,1,2,3 or 4
? See details.TRUE/FALSE
?chemforms
; names of entries in list = chemical formula in chemform.
Each entry in that list contains information on individual isotopologues (rows) with columns:threshold
may lead to unnecessary calculation of low probable isotope peaks - to the extent that not enough memory is available
for either of the two algorithms.algo
. Both algorithms use
transition tree updates to derive the exact mass and probability of a new isotopologue from existing ones, by steps of single isotope replacements.
These transition tree approaches are memory-efficient and fast for a wide range of molecular formulas and are able to reproduce the isotope fine structure
of molecules. The latter must often be pruned during calculation, c.p. argument rel_to
.
algo=1
grows transition trees within element-wise sub-molecules, whereas algo==2
grows them in larger sub-molecules of two elements, if available.
The latter approach can be slightly more efficient for very large or very complex molecules. The sub-isotopologues within sub-molecules are finally combined to
the isotopologuees of the full molecule. In contrast, intermediate counts of sub-isotopologues instead of fine structures are returned for return_iso_calc_amount==TRUE
rel_to
offers 5 possibilities of how probabilities are defined and pruned, each affecting the threshold
argument differently.
Default option rel_to=0
prunes and returns probabilities relative to the most intense isotope peak;
threshold
states a percentage of the intensity of this latter peak.
Similarly, option rel_to=1
normalizes relative to the peak consisting of the most abundant isotopes for each element, which
is often the monoisotopic one.
Option rel_to=2
prunes and returns absolute probabilities ; threshold
is not a percentage but an abolute cutoff.
Options rel_to=3
and rel_to=4
prune relative to the most intense and "monoisotopic" peak, respectively.
Although threshold
is a percentage, both options return absolut probabilities .isopattern
chemforms
check_chemform
getR
envelope
vdetect
check_several
############################
# batch of chemforms #######
data(isotopes)
data(chemforms)
pattern<-isopattern(
isotopes,
chemforms,
threshold=0.1,
plotit=TRUE,
charge=FALSE,
emass=0.00054858,
algo=1
)
############################
# Single chemical formula ##
data(isotopes)
pattern<-isopattern(
isotopes,
"C100H200S2Cl5",
threshold=0.1,
plotit=TRUE,
charge=FALSE,
emass=0.00054858,
algo=1
)
############################
Run the code above in your browser using DataLab