![]() |
OpenMS
|
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine calculation. More...
#include <OpenMS/ANALYSIS/TOPDOWN/FLASHHelperClasses.h>
Public Member Functions | |
| PrecalculatedAveragine ()=default | |
| default constructor | |
| PrecalculatedAveragine (double min_mass, double max_mass, double delta, CoarseIsotopePatternGenerator &generator, bool use_RNA_averagine, double decoy_iso_distance=-1) | |
| constructor with parameters such as mass ranges and bin size. | |
| PrecalculatedAveragine (const PrecalculatedAveragine &)=default | |
| copy constructor | |
| PrecalculatedAveragine (PrecalculatedAveragine &&other) noexcept=default | |
| move constructor | |
| PrecalculatedAveragine & | operator= (const PrecalculatedAveragine &pc)=default |
| copy assignment operator | |
| PrecalculatedAveragine & | operator= (PrecalculatedAveragine &&pc) noexcept=default |
| move assignment operator | |
| ~PrecalculatedAveragine ()=default | |
| destructor | |
| IsotopeDistribution | get (double mass) const |
| get distribution for input mass. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass | |
| size_t | getMaxIsotopeIndex () const |
| get max isotope index | |
| void | setMaxIsotopeIndex (int index) |
| set max isotope index | |
| Size | getLeftCountFromApex (double mass) const |
| Size | getRightCountFromApex (double mass) const |
| Size | getApexIndex (double mass) const |
| get index of most abundant isotope. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass | |
| Size | getLastIndex (double mass) const |
| get index of last isotope. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass | |
| double | getAverageMassDelta (double mass) const |
| double | getMostAbundantMassDelta (double mass) const |
| double | getSNRMultiplicationFactor (double mass) const |
| get the SNR multiplication factor - used for quick SNR calculation | |
Private Member Functions | |
| Size | massToIndex_ (double mass) const |
| calculate the mass bin index from mass | |
Private Attributes | |
| std::vector< IsotopeDistribution > | isotopes_ |
| isotope distributions for different (binned) masses | |
| std::vector< double > | norms_ |
| L2 norms_ for masses - for quick isotope cosine calculation. | |
| std::vector< double > | average_mono_mass_difference_ |
| mass differences between average mass and monoisotopic mass | |
| std::vector< double > | abundant_mono_mass_difference_ |
| mass differences between most abundant mass and monoisotopic mass | |
| std::vector< double > | snr_mul_factor_ |
| std::vector< int > | left_count_from_apex_ |
| Isotope start indices: isotopes of the indices less than them have very low intensities. | |
| std::vector< int > | right_count_from_apex_ |
| Isotope end indices: isotopes of the indices larger than them have very low intensities. | |
| std::vector< Size > | apex_index_ |
| most abundant isotope index | |
| Size | max_isotope_index_ |
| max isotope index | |
| double | mass_interval_ |
| mass interval for calculation | |
| double | min_mass_ |
| min mass for calculation | |
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine calculation.
|
default |
default constructor
| PrecalculatedAveragine | ( | double | min_mass, |
| double | max_mass, | ||
| double | delta, | ||
| CoarseIsotopePatternGenerator & | generator, | ||
| bool | use_RNA_averagine, | ||
| double | decoy_iso_distance = -1 |
||
| ) |
constructor with parameters such as mass ranges and bin size.
| [in] | min_mass | the averagine distributions will be calculated from this min_mass |
| [in] | max_mass | to the max_mass |
| [in] | delta | with the bin size delta |
| [in] | generator | this generates (calculates) the distributions |
| [in] | use_RNA_averagine | if set, nucleotide-based isotope patters are calculated |
| [in] | decoy_iso_distance | if set to a positive value, nonsensical isotope patterns are generated - the distance between isotope = decoy_iso_distance * normal distance. |
|
default |
copy constructor
|
defaultnoexcept |
move constructor
|
default |
destructor
| IsotopeDistribution get | ( | 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 | ( | 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 | ( | 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 | ( | double | mass | ) | const |
get index of last isotope. If input mass exceeds the maximum mass (specified in constructor), output for the maximum mass
| Size getLeftCountFromApex | ( | 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
| size_t getMaxIsotopeIndex | ( | ) | const |
get max isotope index
| double getMostAbundantMassDelta | ( | 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 | ( | double | mass | ) | const |
get isotope distance (from apex to the right 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
| double getSNRMultiplicationFactor | ( | double | mass | ) | const |
get the SNR multiplication factor - used for quick SNR calculation
|
private |
calculate the mass bin index from mass
|
default |
copy assignment operator
|
defaultnoexcept |
move assignment operator
| void setMaxIsotopeIndex | ( | 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 - for quick isotope cosine calculation.
|
private |
Isotope end indices: isotopes of the indices larger than them have very low intensities.
|
private |