This function calculate the contribution of each fragment on spectra based on the reaction rate of fragmentation

bondContribution(spectra: object, massPrecursorIon: Number, precision: Number): Array
Parameters
spectra (object) experimental spectra in form {x:[],y:[]}
massPrecursorIon (Number) massPrecursorIon
precision (Number) ppm error
Returns
Array: Contribution of each fragment on spectra

This function performs the in-silico fragmentation of a given structure and returns the matched fragments and the bond contribution

candidatesFragmentation(spectrum: object, idCode: any, options: object): any
Parameters
spectrum (object) experimental spectra in form {x:[],y:[]}
idCode (any) The OCL idCode of candidate structure
options (object = {})
Name Description
options.calculateHoseCodes boolean (default false) If true, the function will calculate the HOSE codes of the fragments
options.precision number (default 0.5) The precision used to filter the experimental spectrum
options.ionization string (default 'H+') The ionization mode used to filter the experimental spectrum
options.limit number (default 1e7) The limit used to filter the experimental spectrum
Returns
any: returns matched fragments with their bond contribution on experimental spectra

This function fragment both acyclic and cyclic bonds of the molecule

fragment(molecule: any, options: object): object
Parameters
molecule (any)
options (object = {})
Name Description
options.calculateHoseCodes boolean (default false) calculating hose code for bonds is quite time consuming
Returns
object: In-Silico fragmentation results

The function performs the fragmentation of all single linear bonds

fragmentAcyclicBonds(molecule: any, options: object): any
Parameters
molecule (any)
options (object = {})
Name Description
options.calculateHoseCodes boolean (default false) calculating hose code for bonds is quite time consuming
Returns
any: Results fragmentation of acyclic bonds

The function performs the fragmentation of all single ring bonds not belonging to aromatic rings

fragmentRings(molecule: any, options: object): any
Parameters
molecule (any)
options (object = {})
Name Description
options.calculateHoseCodes boolean (default false) calculating hose code for bonds is quite time consuming
Returns
any: Array with results for the fragmentation of ring bonds

This function returns an array of objects with all combination of 2 bonds who can be fragmented in the same ring

getFragmentableRings(molecule: any): any
Parameters
molecule (any)
Returns
any: All combination of 2 bonds who can be fragmented in the same ring

This function returns ringBond, and object that contains information about the bonds of each ring

getRingsInfo(molecule: any): any
Parameters
molecule (any)
Returns
any: Information of ring bonds for each ring in the molecule

Perform substructure search to determine how many neutral losses are allowed

neutralLoss(fragmentIDCode: string): string
Parameters
fragmentIDCode (string) IDCode of the fragment
Returns
string: a concataned string of all neutral losses (ex: (H2O)0--0(H2CO)0--1

Organize data from experimental spectra ([x,y,x,y,x,y...]) to a object with x and y arrays

spectraPreparation(experimentalSpectrum: Array): object
Parameters
experimentalSpectrum (Array) experimental ms spectrum data
Returns
object: data organized {x:[],y:[]} form