AtomicRatioMF

AtomicRatioMF

Type: object

Properties
em (number) : monoisotopic mass of the formula
mw (number) : molecular weight of the formula
mf (string) : the formula
mfAtomicComposition (Array<MFAtomicComposition>) : every element of the formula and its share of all its atoms
atomicRatios (Array<AtomicRatio>) : every element of ratios , the given ratio against the one of the formula
totalError (number) : sum of the absolute errors of atomicRatios

MFAtomicComposition

MFAtomicComposition

Type: object

Properties
element (string)
count (number) : number of atoms of the element in the formula
theoretical (number) : share of the atoms of the formula that are this element

AtomicRatio

AtomicRatio

Type: object

Properties
element (string)
count (number) : number of atoms of the element in the formula
experimental (number) : share of the element in ratios , over the elements of ratios
theoretical (number) : share of the element in the formula, over the elements of ratios
error (number) : theoretical minus experimental

mfFromAtomicRatio

Returns possible combinations

mfFromAtomicRatio(ratios: Record<string, number>, options: object): Promise<Array<AtomicRatioMF>>
Parameters
ratios (Record<string, number>) atomic ratio of each element, at any scale
options (object = {})
Name Description
options.ranges string (default 'C0-10 H0-10 O0-10 N0-10') range of mfs to search
options.maxElementError number (default 0.05)
options.maxTotalError number (default 0.1)
options.minMW number (default 0) minimal molecular weight
options.maxMW number (default +Infinity) maximal molecular weight
options.unsaturation object (default {})
options.unsaturation.min number (default -Infinity) Minimal unsaturation
options.unsaturation.max number (default +Infinity) Maximal unsaturation
options.unsaturation.onlyInteger boolean (default false) Integer unsaturation
options.unsaturation.onlyNonInteger boolean (default false) Non integer unsaturation
Returns
Promise<Array<AtomicRatioMF>>: