55 void getTag(
const std::vector<double>& mzs, std::vector<std::string>& tags)
const;
92 void getTag_(std::string& tag,
const std::vector<double>& mzs,
const size_t i, std::vector<std::string>& tags,
const size_t charge)
const;
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
Calculate sequence tags from m/z values.
Definition: Tagger.h:27
size_t min_tag_length_
minimum tag length
Definition: Tagger.h:83
double max_gap_
will be set to highest residue mass in ResidueDB
Definition: Tagger.h:81
void getTag(const std::vector< double > &mzs, std::vector< std::string > &tags) const
Generate tags from mass vector mzs.
size_t min_charge_
minimal fragment charge
Definition: Tagger.h:85
char getAAByMass_(double m) const
get a residue one letter code by matching the mass m to the map of residues mass2aa_,...
double min_gap_
will be set to smallest residue mass in ResidueDB
Definition: Tagger.h:80
void getTag(const MSSpectrum &spec, std::vector< std::string > &tags) const
Generate tags from an MSSpectrum.
void getTag_(std::string &tag, const std::vector< double > &mzs, const size_t i, std::vector< std::string > &tags, const size_t charge) const
start searching for tags starting from peak i of the mz vector mzs
void setMaxCharge(size_t max_charge)
Change the maximal charge considered by the tagger.
size_t max_charge_
maximal fragment charge
Definition: Tagger.h:86
Tagger(size_t min_tag_length, double ppm, size_t max_tag_length=65535, size_t min_charge=1, size_t max_charge=1, const StringList &fixed_mods=StringList(), const StringList &var_mods=StringList())
Constructor for Tagger.
size_t max_tag_length_
maximum tag length
Definition: Tagger.h:84
double ppm_
tolerance
Definition: Tagger.h:82
std::map< double, char > mass2aa_
mapping of residue masses to their one letter codes
Definition: Tagger.h:87
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22