ionFormula | R Documentation |
fitIonInit
Creates the formulae that get passed to nls
ionFormula(ions, charge = 1, threshold = 10, peak = "gaussian")
ions |
Character. Molecular formula formatted in a way that is
acceptable to |
charge |
Numeric. Charge of ion. |
threshold |
Numeric. Percentage threshold of isotope relative to highest intensity isotope. Defaults to 10 |
peak |
Character. One of |
The fitting peak shape is either a gaussian (peak = "gaussian"
) or
exponentially modified gaussian (peak = "emg"
). The "gaussian"
peak
shape is defined as
rel[i] * λ[ij] * exp(-(mass - m[ij] - mass.shift)^2 / (2 * sd ^2))
where λ[ij] is the intensity of the jth isotope of ions[i]
normalized to the most intense isotope of ions[i]
and m[ij] is the
mass of the jth isotope of ions[i]
. The "emg"
peak shape
is defined as
(rel[i] * λ[ij] * sd / tau) * sqrt(pi/2) * exp(1/2*(sd/tau)^2-(mass-m[j]-mass.shift)/tau) * erfc(sqrt(1/2)*(sd/tau-(mass-m[j]-mass.shift)/sd))
A character string that concatinates all the formulae for the ions and their respetive isotopes, along with a constant noise term.
fitIonInit
, isopattern
Other spectral fitting functions:
fitIonInit()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.