Class MMElementRule
java.lang.Object
org.openscience.cdk.formula.rules.MMElementRule
- All Implemented Interfaces:
IRule
This class validate if the occurrence of the IElements in the IMolecularFormula, for
metabolites, are into a maximal limit according paper: . The study is from 2 different mass spectral
databases and according different mass of the metabolites. The analysis don't
take account if the IElement is not contained in the matrix. It will be jumped.
The rules is based from Tobias Kind paper with the title "Seven Golden Rules for heuristic filtering of molecular formula" [Kind, Tobias and Fiehn, Oliver. BMC Bioinformatics. 2007. 8].
| Name | Default | Description |
| database | willey | Mass spectral databases extraction |
| massRange | < 500 | Mass to take account |
- Author:
- miguelrojasch
- Created on:
- 2007-11-20
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA enumeration of the possible databases according the rules.static enumA enumeration of the possible mass range according the rules. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]Gets the parameters attribute of the MMElementRule object.voidsetParameters(Object[] params) Sets the parameters attribute of the MMElementRule object.doublevalidate(IMolecularFormula formula) Validate the occurrence of this IMolecularFormula.
-
Constructor Details
-
MMElementRule
public MMElementRule()Constructor for the MMElementRule object.
-
-
Method Details
-
setParameters
Sets the parameters attribute of the MMElementRule object.- Specified by:
setParametersin interfaceIRule- Parameters:
params- The new parameters value- Throws:
CDKException- Description of the Exception- See Also:
-
getParameters
Gets the parameters attribute of the MMElementRule object.- Specified by:
getParametersin interfaceIRule- Returns:
- The parameters value
- See Also:
-
validate
Validate the occurrence of this IMolecularFormula.- Specified by:
validatein interfaceIRule- Parameters:
formula- Parameter is the IMolecularFormula- Returns:
- An ArrayList containing 9 elements in the order described above
- Throws:
CDKException- if an error occurs during the validation. See documentation for individual rules
-