![]() |
OpenMS
3.0.0
|
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine calculation. More...
#include <OpenMS/ANALYSIS/TOPDOWN/FLASHDeconvHelperStructs.h>
Public Member Functions | |
| PrecalculatedAveragine ()=default | |
| default constructor More... | |
| PrecalculatedAveragine (const double min_mass, const double max_mass, const double delta, CoarseIsotopePatternGenerator *generator, const bool use_RNA_averagine) | |
| constructor with parameters such as mass ranges and bin size. More... | |
| IsotopeDistribution | get (const double mass) const |
| get distribution for input mass. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass More... | |
| int | getMaxIsotopeIndex () const |
| get max isotope index More... | |
| void | setMaxIsotopeIndex (const int index) |
| set max isotope index More... | |
| Size | getLeftCountFromApex (const double mass) const |
| get isotope distance (from apex to the left direction) to consider. This is specified in the constructor. index. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass More... | |
| Size | getRightCountFromApex (const double mass) const |
| get isotope distance (from apex to the rigth direction) to consider. This is specified in the constructor. index. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass More... | |
| Size | getApexIndex (const double mass) const |
| get index of most abundant isotope. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass More... | |
| Size | getLastIndex (const double mass) const |
| get index of last isotope. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass More... | |
| double | getAverageMassDelta (const double mass) const |
| get mass difference between avg and mono masses. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass More... | |
| double | getMostAbundantMassDelta (const double mass) const |
| get mass difference between most abundant mass and mono masses. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass More... | |
Private Member Functions | |
| Size | massToIndex_ (double const mass) const |
| calculate the mass bin index from mass More... | |
Private Attributes | |
| std::vector< IsotopeDistribution > | isotopes_ |
| isotope distributions for different (binned) masses More... | |
| std::vector< double > | norms_ |
| L2 norms_ for masses. More... | |
| std::vector< double > | average_mono_mass_difference_ |
| mass differences between average mass and monoisotopic mass More... | |
| std::vector< double > | abundant_mono_mass_difference_ |
| mass differences between most abundant mass and monoisotopic mass More... | |
| std::vector< int > | left_count_from_apex_ |
| Isotope start indices: isotopes of the indices less than them have very low intensities. More... | |
| std::vector< int > | right_count_from_apex_ |
| Isotope end indices: isotopes of the indices larger than them have very low intensities. More... | |
| std::vector< Size > | apex_index_ |
| most abundant isotope index More... | |
| Size | max_isotope_index_ |
| max isotope index More... | |
| double | mass_interval_ |
| mass interval for calculation More... | |
| double | min_mass_ |
| min mass for calculation More... | |
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine calculation.
|
default |
default constructor
| PrecalculatedAveragine | ( | const double | min_mass, |
| const double | max_mass, | ||
| const double | delta, | ||
| CoarseIsotopePatternGenerator * | generator, | ||
| const bool | use_RNA_averagine | ||
| ) |
constructor with parameters such as mass ranges and bin size.
| min_mass | the averagine distributions will be calculated from this min_mass |
| max_mass | to the max_mass |
| delta | with the bin size delta |
| generator | this generates (calculates) the distributions |
| use_RNA_averagine | if set, nucleotide-based isotope patters are calculated |
| IsotopeDistribution get | ( | const double | mass | ) | const |
get distribution for input mass. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass
| Size getApexIndex | ( | const double | mass | ) | const |
get index of most abundant isotope. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass
| double getAverageMassDelta | ( | const double | mass | ) | const |
get mass difference between avg and mono masses. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass
| Size getLastIndex | ( | const double | mass | ) | const |
get index of last isotope. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass
Referenced by TOPPFLASHDeconv::main_().
| Size getLeftCountFromApex | ( | const double | mass | ) | const |
get isotope distance (from apex to the left direction) to consider. This is specified in the constructor. index. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass
| int getMaxIsotopeIndex | ( | ) | const |
get max isotope index
| double getMostAbundantMassDelta | ( | const double | mass | ) | const |
get mass difference between most abundant mass and mono masses. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass
| Size getRightCountFromApex | ( | const double | mass | ) | const |
get isotope distance (from apex to the rigth direction) to consider. This is specified in the constructor. index. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass
|
private |
calculate the mass bin index from mass
| void setMaxIsotopeIndex | ( | const int | index | ) |
set max isotope index
|
private |
mass differences between most abundant mass and monoisotopic mass
|
private |
most abundant isotope index
|
private |
mass differences between average mass and monoisotopic mass
|
private |
isotope distributions for different (binned) masses
|
private |
Isotope start indices: isotopes of the indices less than them have very low intensities.
|
private |
mass interval for calculation
|
private |
max isotope index
|
private |
min mass for calculation
|
private |
L2 norms_ for masses.
|
private |
Isotope end indices: isotopes of the indices larger than them have very low intensities.