173 double logMz = -1000;
179 bool is_positive =
true;
181 int isotopeIndex = -1;
213 explicit Tag(
String seq,
double n_mass,
double c_mass,
int charge,
double score, std::vector<double>& mzs);
232 const std::vector<double>&
getMzs()
const;
236 double n_mass_ = -1, c_mass_ = -1;
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: FLASHDeconvHelperStructs.h:166
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
get uncharged mass of this peak. It is NOT a monoisotopic mass of a PeakGroup, rather a monoisotopic ...
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine c...
Definition: FLASHDeconvHelperStructs.h:33
Size getApexIndex(double mass) const
get index of most abundant isotope. If input mass exceeds the maximum mass (specified in constructor)...
void setMaxIsotopeIndex(int index)
set max isotope index
std::vector< double > norms_
L2 norms_ for masses.
Definition: FLASHDeconvHelperStructs.h:38
std::vector< double > average_mono_mass_difference_
mass differences between average mass and monoisotopic mass
Definition: FLASHDeconvHelperStructs.h:40
PrecalculatedAveragine()=default
default constructor
Size max_isotope_index_
max isotope index
Definition: FLASHDeconvHelperStructs.h:51
PrecalculatedAveragine & operator=(PrecalculatedAveragine &&pc) noexcept=default
move assignment operator
size_t getMaxIsotopeIndex() const
get max isotope index
Size getRightCountFromApex(double mass) const
double min_mass_
min mass for calculation
Definition: FLASHDeconvHelperStructs.h:55
double getAverageMassDelta(double mass) const
get mass difference between avg and mono masses. If input mass exceeds the maximum mass (specified in...
double mass_interval_
mass interval for calculation
Definition: FLASHDeconvHelperStructs.h:53
PrecalculatedAveragine & operator=(const PrecalculatedAveragine &pc)=default
copy assignment operator
Size massToIndex_(double mass) const
calculate the mass bin index from mass
double getMostAbundantMassDelta(double mass) const
get mass difference between most abundant mass and mono masses. If input mass exceeds the maximum mas...
std::vector< double > abundant_mono_mass_difference_
mass differences between most abundant mass and monoisotopic mass
Definition: FLASHDeconvHelperStructs.h:42
~PrecalculatedAveragine()=default
destructor
Size getLastIndex(double mass) const
get index of last isotope. If input mass exceeds the maximum mass (specified in constructor),...
IsotopeDistribution get(double mass) const
get distribution for input mass. If input mass exceeds the maximum mass (specified in constructor),...
std::vector< IsotopeDistribution > isotopes_
isotope distributions for different (binned) masses
Definition: FLASHDeconvHelperStructs.h:36
std::vector< Size > apex_index_
most abundant isotope index
Definition: FLASHDeconvHelperStructs.h:48
std::vector< int > left_count_from_apex_
Isotope start indices: isotopes of the indices less than them have very low intensities.
Definition: FLASHDeconvHelperStructs.h:44
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: FLASHDeconvHelperStructs.h:46
Size getLeftCountFromApex(double mass) const
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.
Sequence tag. No mass gap is allowed in the seq. The mass gap containing tag should be enumerated int...
Definition: FLASHDeconvHelperStructs.h:210
double getCtermMass() const
String seq_
Definition: FLASHDeconvHelperStructs.h:235
String getSequence() const
Tag(String seq, double n_mass, double c_mass, int charge, double score, std::vector< double > &mzs)
constructor
Size length_
Definition: FLASHDeconvHelperStructs.h:240
const std::vector< double > & getMzs() const
double getNtermMass() const
int charge_
Definition: FLASHDeconvHelperStructs.h:237
Tag(const Tag &)=default
copy constructor
bool operator<(const Tag &a) const
std::vector< double > mzs_
Definition: FLASHDeconvHelperStructs.h:239
bool operator>(const Tag &a) const
double score_
Definition: FLASHDeconvHelperStructs.h:238
bool operator==(const Tag &other) const
Definition: IsotopeDistribution.h:39
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:28
A more convenient string class.
Definition: String.h:34
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
FLASHIda C++ to C# (or vice versa) bridge functions The functions here are called in C# to invoke fun...
Definition: FeatureDeconvolution.h:22
Isobaric quantities.
Definition: FLASHDeconvHelperStructs.h:152
int scan
Definition: FLASHDeconvHelperStructs.h:154
std::vector< double > quantities
Definition: FLASHDeconvHelperStructs.h:158
std::vector< double > merged_quantities
Definition: FLASHDeconvHelperStructs.h:159
double precursor_mass
Definition: FLASHDeconvHelperStructs.h:157
double rt
Definition: FLASHDeconvHelperStructs.h:155
double precursor_mz
Definition: FLASHDeconvHelperStructs.h:156
Mass feature (Deconvolved masses in spectra are traced by Mass tracing to generate mass features - li...
Definition: FLASHDeconvHelperStructs.h:121
bool operator<(const MassFeature &a) const
features are compared
Definition: FLASHDeconvHelperStructs.h:137
double avg_mass
Definition: FLASHDeconvHelperStructs.h:130
std::vector< float > per_charge_intensity
Definition: FLASHDeconvHelperStructs.h:126
uint index
feature index;
Definition: FLASHDeconvHelperStructs.h:124
bool operator>(const MassFeature &a) const
Definition: FLASHDeconvHelperStructs.h:141
bool is_decoy
Definition: FLASHDeconvHelperStructs.h:134
int iso_offset
Definition: FLASHDeconvHelperStructs.h:128
std::vector< float > per_isotope_intensity
Definition: FLASHDeconvHelperStructs.h:127
uint ms_level
Definition: FLASHDeconvHelperStructs.h:135
double rep_mz
Definition: FLASHDeconvHelperStructs.h:133
MassTrace mt
Definition: FLASHDeconvHelperStructs.h:125
bool operator==(const MassFeature &other) const
Definition: FLASHDeconvHelperStructs.h:145
int charge_count
Definition: FLASHDeconvHelperStructs.h:131
double isotope_score
Definition: FLASHDeconvHelperStructs.h:132
int rep_charge
Definition: FLASHDeconvHelperStructs.h:129
Wrapper struct for all the structs needed by the FLASHDeconv Three structures are defined: Precalcula...
Definition: FLASHDeconvHelperStructs.h:30
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 ...