@Deprecated public class MassToFormulaTool extends Object
Tool to determine molecular formula consistent with a given accurate mass. The molecular formulas are not validate. It only consist in generate combination according object (see MolecularFormulaChecker). The algorithm is published in Rojas-Cherto M. et.al. (Rojas-Cherto, Miguel et. al.. Bioinformatics. 2011. ).
MassToFormulaTool mf = new MassToFormulaTool(); double myMass = 133.004242; IMolecularFormulaSet mfSet = mf.generate(myMass);
The elements are listed according on difference with the proposed mass.
| Constructor and Description |
|---|
MassToFormulaTool(IChemObjectBuilder builder)
Deprecated.
Construct an instance of MassToFormulaTool.
|
| Modifier and Type | Method and Description |
|---|---|
IMolecularFormulaSet |
generate(double mass)
Deprecated.
Method that actually does the work of extracting the molecular formula.
|
List<IRule> |
getRestrictions()
Deprecated.
Get the restrictions that must be presents in the molecular formula.
|
void |
setDefaultRestrictions()
Deprecated.
Set the default restrictions that must be presents in the molecular formula.
|
void |
setRestrictions(List<IRule> rulesNew)
Deprecated.
Set the restrictions that must be presents in the molecular formula.
|
public MassToFormulaTool(IChemObjectBuilder builder)
setDefaultRestrictions()public void setRestrictions(List<IRule> rulesNew) throws CDKException
rulesNew - The restrictions to imposeCDKExceptiongetRestrictions(),
setDefaultRestrictions(),
IRulepublic List<IRule> getRestrictions()
setDefaultRestrictions()public void setDefaultRestrictions()
getRestrictions()public IMolecularFormulaSet generate(double mass)
mass - molecular formula to create from the massCopyright © 2022. All rights reserved.