isowrap | R Documentation |
Wrapper combining the functions getR
, isopattern
, envelope
and
vdetect
.
Uses chemical formulas from check_chemform
as argument.
isowrap(isotopes, checked, resmass, resolution = FALSE, nknots = 6, spar = 0.2, threshold = 0.1, charge = 1, emass = 0.00054858, algo=2, ppm = FALSE, dmz = "get", frac = 1/4, env = "Gaussian", detect = "centroid", plotit = FALSE)
isotopes |
Dataframe listing all relevant isotopes, such as |
checked |
Output dataframe from |
resmass |
For resolution interpolation: dataframe with two columns, resolution and mass; see |
resolution |
Single resolution value. Only used if argument |
nknots |
Number of knots, see |
spar |
Smoothing parameter, see |
threshold |
Abundance below which isotope peaks are omitted, see |
charge |
z in m/z, see |
emass |
Electrone mass. Only relevant if |
algo |
Which algorithm to use? Type |
ppm |
Set stick discretization, see details section of |
dmz |
Set stick discretization, see details section of |
frac |
Set stick discretization, see details section of |
env |
Peak shape function, see |
detect |
Return either |
plotit |
Should results be plotted, |
List with length equal to length of list profiles
, with equal names of list entries.
Each entry in that list contains the centroids, intensoids or valley of the envelope in two columns:
m/z |
m/z |
abundance |
area(centroid) or abundance (intensoid, valley) |
Martin Loos, Christian Gerber
vdetect
data(isotopes); data(resolution_list); data(chemforms); chemforms<-chemforms[1:10]; checked<-check_chemform( isotopes, chemforms ); resmass<-resolution_list[[1]] centro<-isowrap( isotopes, checked, resmass=resolution_list[[4]], resolution=FALSE, nknots=4, spar=0.2, threshold=0.1, charge=1, emass=0.00054858, algo=2, ppm=FALSE, dmz="get", # retrieve dm from R=m/dm frac=1/4, env="Gaussian", detect="centroid", plotit=TRUE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.