17#include <boost/dynamic_bitset.hpp>
196 double logMz = -1000;
202 bool is_positive =
true;
204 int isotopeIndex = -1;
253 struct hash<
OpenMS::FLASHHelperClasses::MassFeature>
264 struct hash<
OpenMS::FLASHHelperClasses::LogMzPeak>
Isotope pattern generator for coarse isotope distributions.
Definition CoarseIsotopePatternGenerator.h:79
log transformed peak. After deconvolution, all necessary information from deconvolution such as charg...
Definition FLASHHelperClasses.h:189
bool operator>(const LogMzPeak &a) const
bool operator<(const LogMzPeak &a) const
log mz values are compared
LogMzPeak(const Peak1D &peak, bool positive)
constructor from Peak1D.
LogMzPeak()=default
default constructor
bool operator==(const LogMzPeak &other) const
LogMzPeak(const LogMzPeak &)=default
copy constructor
~LogMzPeak()=default
destructor
double getUnchargedMass() const
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine c...
Definition FLASHHelperClasses.h:41
Size getApexIndex(double mass) const
get index of most abundant isotope. If input mass exceeds the maximum mass (specified in constructor)...
double getSNRMultiplicationFactor(double mass) const
get the SNR multiplication factor - used for quick SNR calculation
void setMaxIsotopeIndex(int index)
set max isotope index
std::vector< double > norms_
L2 norms_ for masses - for quick isotope cosine calculation.
Definition FLASHHelperClasses.h:46
std::vector< double > average_mono_mass_difference_
mass differences between average mass and monoisotopic mass
Definition FLASHHelperClasses.h:48
PrecalculatedAveragine()=default
default constructor
Size max_isotope_index_
max isotope index
Definition FLASHHelperClasses.h:61
PrecalculatedAveragine & operator=(const PrecalculatedAveragine &pc)=default
copy assignment operator
size_t getMaxIsotopeIndex() const
get max isotope index
Size getRightCountFromApex(double mass) const
double min_mass_
min mass for calculation
Definition FLASHHelperClasses.h:65
double getAverageMassDelta(double mass) const
double mass_interval_
mass interval for calculation
Definition FLASHHelperClasses.h:63
Size massToIndex_(double mass) const
calculate the mass bin index from mass
double getMostAbundantMassDelta(double mass) const
std::vector< double > abundant_mono_mass_difference_
mass differences between most abundant mass and monoisotopic mass
Definition FLASHHelperClasses.h:50
std::vector< double > snr_mul_factor_
Definition FLASHHelperClasses.h:52
~PrecalculatedAveragine()=default
destructor
Size getLastIndex(double mass) const
get index of last isotope. If input mass exceeds the maximum mass (specified in 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.
IsotopeDistribution get(double mass) const
get distribution for input mass. If input mass exceeds the maximum mass (specified in constructor),...
PrecalculatedAveragine & operator=(PrecalculatedAveragine &&pc) noexcept=default
move assignment operator
std::vector< IsotopeDistribution > isotopes_
isotope distributions for different (binned) masses
Definition FLASHHelperClasses.h:44
std::vector< Size > apex_index_
most abundant isotope index
Definition FLASHHelperClasses.h:58
std::vector< int > left_count_from_apex_
Isotope start indices: isotopes of the indices less than them have very low intensities.
Definition FLASHHelperClasses.h:54
PrecalculatedAveragine(PrecalculatedAveragine &&other) noexcept=default
move constructor
PrecalculatedAveragine(const PrecalculatedAveragine &)=default
copy constructor
std::vector< int > right_count_from_apex_
Isotope end indices: isotopes of the indices larger than them have very low intensities.
Definition FLASHHelperClasses.h:56
Size getLeftCountFromApex(double mass) const
Definition IsotopeDistribution.h:40
A container type that gathers peaks similar in m/z and moving along retention time.
Definition MassTrace.h:36
A 1-dimensional raw data point or peak.
Definition Peak1D.h:30
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
void hash_combine(std::size_t &seed, std::size_t value) noexcept
Combine a hash value with additional data using golden ratio mixing.
Definition HashUtils.h:87
std::size_t hash_float(T value) noexcept
Hash for a floating point type (float or double).
Definition HashUtils.h:142
Isobaric quantities.
Definition FLASHHelperClasses.h:175
int scan
Definition FLASHHelperClasses.h:177
std::vector< double > quantities
Definition FLASHHelperClasses.h:181
bool empty() const
return true if no isobaric quantities have been stored
std::vector< double > merged_quantities
Definition FLASHHelperClasses.h:182
double precursor_mass
Definition FLASHHelperClasses.h:180
double rt
Definition FLASHHelperClasses.h:178
double precursor_mz
Definition FLASHHelperClasses.h:179
Mass feature (Deconvolved masses in spectra are traced by Mass tracing to generate mass features - li...
Definition FLASHHelperClasses.h:137
bool operator<(const MassFeature &a) const
features are compared
Definition FLASHHelperClasses.h:159
double avg_mass
average mass
Definition FLASHHelperClasses.h:151
std::vector< float > per_charge_intensity
per charge and isotope intensities
Definition FLASHHelperClasses.h:144
uint index
feature index;
Definition FLASHHelperClasses.h:140
bool operator>(const MassFeature &a) const
Definition FLASHHelperClasses.h:163
bool is_decoy
Definition FLASHHelperClasses.h:156
int iso_offset
isotope offset between deconvolved masses and mass feature
Definition FLASHHelperClasses.h:147
std::vector< float > per_isotope_intensity
Definition FLASHHelperClasses.h:145
uint ms_level
Definition FLASHHelperClasses.h:157
double rep_mz
Definition FLASHHelperClasses.h:155
MassTrace mt
the trace calculated from the masses
Definition FLASHHelperClasses.h:142
bool operator==(const MassFeature &other) const
Definition FLASHHelperClasses.h:167
int charge_count
Definition FLASHHelperClasses.h:153
double isotope_score
Definition FLASHHelperClasses.h:154
int max_scan_number
Definition FLASHHelperClasses.h:149
Wrapper struct for all the structs needed by the FLASHDeconv The following structures/classes are def...
Definition FLASHHelperClasses.h:38
static double getLogMz(double mz, bool positive)
calculate log mzs from mzs
static float getChargeMass(bool positive_ioniziation_mode)
get charge carrier mass : positive mode mass of (Constants::PROTON_MASS_U) and negative mode mass of ...
std::size_t operator()(const OpenMS::FLASHHelperClasses::LogMzPeak &peak) const noexcept
Definition FLASHHelperClasses.h:266
std::size_t operator()(const OpenMS::FLASHHelperClasses::MassFeature &mf) const noexcept
Definition FLASHHelperClasses.h:255