fragment

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
options.cyclic boolean (default true) calculate cyclic fragmentation
options.acyclic boolean (default true) calculate acyclic fragmentation
options.full boolean (default true) calculate the molecular formula of the full molecule
Returns
object: In-Silico fragmentation results

fragmentAcyclicBonds

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
options.parentIDCode string (default molecule.getIDCode())
Returns
any: Results fragmentation of acyclic bonds

fragmentRings

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
options.parentIDCode string (default molecule.getIDCode())
Returns
any: Array with results for the fragmentation of ring bonds

getFragmentableRings

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

getRingsInfo

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

reactionFragmentation

Fragment a molecule by applying reactions from a custom database of reactions

reactionFragmentation(oclMolecule: any, options: Object): object
Parameters
oclMolecule (any)
options (Object = {})
Name Description
options.ionizations Array<("esi" | "ei")> (default ['esi']) The ionization technique to be used
options.modes Array<("positive" | "negative")> (default ['positive']) The ionization mode to be used
options.maxDepth number (default 5) The maximum depth of the overall fragmentation tree
options.limitReactions number (default 200) The maximum number of reactions to be applied to each branch
options.dwar string? The dwar entry to be used, if not provided, the default one will be used
options.maxIonizations number (default 1) The maximum depth of the ionization tree
options.minIonizations number (default 1) The minimum depth of the ionization tree
options.minReactions number (default 0) The minimum depth of the reaction tree
options.maxReactions number (default 3) The maximum depth of the reaction tree
Returns
object: In-Silico fragmentation results with the following properties:
  • masses: array of monoisotopic masses
  • trees: array of fragmentation trees
  • validNodes: nodes without dead branches

getMasses

get array of mz from fragmentation nodes

getMasses(nodes: Array): Array
Parameters
nodes (Array) valid nodes of fragmentation process
Returns
Array: array of unique mz values

MassPeak

MassPeak

Type: object

Properties
mass (number)
intensity (number)

getFragmentationSVG

getFragmentationSVG(trees: Array<object>, options: object)
Parameters
trees (Array<object>)
options (object = {})
Name Description
options.OCL object?
options.accuracy number?
options.peaks Array<MassPeak>?

getDatabase

Get the default databases of reactions for positive and negative mode

getDatabase(options: Object)
Parameters
options (Object = {}) Options for database selection
Name Description
options.kind Array<("ionization" | "resonance" | "reaction")> (default ['ionization','resonance','reaction']) The kind of database to be used
options.ionizations Array<("esi" | "ei")> (default ['esi','ei']) The ionization technique to be used
options.modes Array<("positive" | "negative")> (default ['positive','negative']) The ionization mode to be used
options.dwar string? The dwar file to use. Default will use an included mass fragmentation database