Package org.openscience.cdk.formula
Class IsotopePatternGenerator
- java.lang.Object
-
- org.openscience.cdk.formula.IsotopePatternGenerator
-
-
Constructor Summary
Constructors Constructor Description IsotopePatternGenerator()Constructor for the IsotopeGenerator.IsotopePatternGenerator(double minIntensity)Constructor for the IsotopeGenerator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsotopePatterngetIsotopes(IMolecularFormula molFor)Get all combinatorial chemical isotopes given a structure.IsotopePatternGeneratorsetMinIntensity(double minIntensity)Set the minimum (normalised) intensity to generate.IsotopePatternGeneratorsetMinResolution(double resolution)Set the minimum resolution at which peaks within this mass difference should be considered equivalent.IsotopePatternGeneratorsetStoreFormulas(boolean storeFormula)When generating the isotope containers store the MF for eachIsotopeContainer.
-
-
-
Constructor Detail
-
IsotopePatternGenerator
public IsotopePatternGenerator()
Constructor for the IsotopeGenerator. The minimum abundance is set to 0.1 (10% abundance) by default.
-
IsotopePatternGenerator
public IsotopePatternGenerator(double minIntensity)
Constructor for the IsotopeGenerator.- Parameters:
minIntensity- Minimal intensity of the isotopes to be added in the combinatorial search (scale 0.0 to 1.0)
-
-
Method Detail
-
setMinIntensity
public IsotopePatternGenerator setMinIntensity(double minIntensity)
Set the minimum (normalised) intensity to generate.- Parameters:
minIntensity- the minimum intensity- Returns:
- self for method chaining
-
setMinResolution
public IsotopePatternGenerator setMinResolution(double resolution)
Set the minimum resolution at which peaks within this mass difference should be considered equivalent.- Parameters:
resolution- the minimum resolution- Returns:
- self for method chaining
-
setStoreFormulas
public IsotopePatternGenerator setStoreFormulas(boolean storeFormula)
When generating the isotope containers store the MF for eachIsotopeContainer.- Parameters:
storeFormula- formulas should be stored- Returns:
- self for method chaining
-
getIsotopes
public IsotopePattern getIsotopes(IMolecularFormula molFor)
Get all combinatorial chemical isotopes given a structure.- Parameters:
molFor- The IMolecularFormula to start- Returns:
- A IsotopePattern object containing the different combinations
-
-