OpenMS
|
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 (double min_mass, double max_mass, double delta, CoarseIsotopePatternGenerator &generator, bool use_RNA_averagine) | |
constructor with parameters such as mass ranges and bin size. More... | |
PrecalculatedAveragine (const PrecalculatedAveragine &)=default | |
copy constructor More... | |
PrecalculatedAveragine (PrecalculatedAveragine &&other) noexcept=default | |
move constructor More... | |
PrecalculatedAveragine & | operator= (const PrecalculatedAveragine &pc)=default |
copy assignment operator More... | |
PrecalculatedAveragine & | operator= (PrecalculatedAveragine &&pc) noexcept=default |
move assignment operator More... | |
~PrecalculatedAveragine ()=default | |
destructor More... | |
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 More... | |
size_t | getMaxIsotopeIndex () const |
get max isotope index More... | |
void | setMaxIsotopeIndex (int index) |
set max isotope index More... | |
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 More... | |
Size | getRightCountFromApex (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 (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 (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 (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 (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 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 | ( | double | min_mass, |
double | max_mass, | ||
double | delta, | ||
CoarseIsotopePatternGenerator & | generator, | ||
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 |
|
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 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
|
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.
|
private |
Isotope end indices: isotopes of the indices larger than them have very low intensities.