115 return fixed_modifications_;
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
An LC-MS feature.
Definition: Feature.h:72
This class implements the database preprocessing needing for precursor ion selection.
Definition: PrecursorIonSelectionPreprocessing.h:54
double getRT(const String &prot_id, Size peptide_index)
double getRTProbability(const String &prot_id, Size peptide_index, Feature &feature)
std::map< String, std::vector< String > > prot_peptide_seq_map_
Definition: PrecursorIonSelectionPreprocessing.h:161
~PrecursorIonSelectionPreprocessing() override
const std::map< char, std::vector< String > > & getFixedModifications()
Definition: PrecursorIonSelectionPreprocessing.h:113
std::map< char, std::vector< String > > fixed_modifications_
Definition: PrecursorIonSelectionPreprocessing.h:162
double getGaussSigma() const
Definition: PrecursorIonSelectionPreprocessing.h:124
double sigma_
Definition: PrecursorIonSelectionPreprocessing.h:163
std::vector< UInt > counter_
counter for the bins
Definition: PrecursorIonSelectionPreprocessing.h:154
void savePreprocessedDB_(const String &db_path, const String &path)
saves the preprocessed db
UInt f_max_
maximal relative frequency of a mass
Definition: PrecursorIonSelectionPreprocessing.h:156
double mu_
Definition: PrecursorIonSelectionPreprocessing.h:164
bool fixed_mods_
Definition: PrecursorIonSelectionPreprocessing.h:158
const std::vector< double > & getMasses(const String &acc) const
std::vector< double > masses_
all tryptic masses of the distinct peptides in the database
Definition: PrecursorIonSelectionPreprocessing.h:146
void dbPreprocessing(const String &db_path, const String &rt_model_path, const String &dt_model_path, bool save=true)
Calculates tryptic peptide masses of a given database and stores masses and peptide sequences.
double getRTProbability_(double min_obs_rt, double max_obs_rt, double pred_rt)
double getPT(const String &prot_id, Size peptide_index)
const std::map< String, std::vector< double > > & getProteinPTMap() const
Int getScanNumber_(double rt)
PrecursorIonSelectionPreprocessing()
double getWeight(double mass)
get the weighted frequency of a mass
void filterTaxonomyIdentifier_(FASTAFile::FASTAEntry &entry)
pre-process fasta identifier
double getGaussMu() const
Definition: PrecursorIonSelectionPreprocessing.h:119
double getRTProbability(double pred_rt, Feature &feature)
void loadPreprocessing()
Loads tryptic peptide masses of a given database.
void dbPreprocessing(const String &db_path, bool save=true)
Calculates tryptic peptide masses of a given database and stores masses and peptide sequences.
void setGaussianParameters(double mu, double sigma)
PrecursorIonSelectionPreprocessing(const PrecursorIonSelectionPreprocessing &source)
void updateMembers_() override
update members method from DefaultParamHandler to update the members
PrecursorIonSelectionPreprocessing & operator=(const PrecursorIonSelectionPreprocessing &source)
void setFixedModifications(StringList &modifications)
std::map< String, std::vector< double > > pt_prot_map_
Definition: PrecursorIonSelectionPreprocessing.h:160
std::vector< double > bin_masses_
the masses of the bins used for preprocessing (only used if bins are not equidistant,...
Definition: PrecursorIonSelectionPreprocessing.h:152
std::map< String, std::vector< double > > prot_masses_
stores masses of tryptic peptides for proteins, key is the accession number
Definition: PrecursorIonSelectionPreprocessing.h:150
std::set< AASequence > sequences_
the sequences of the tryptic peptides
Definition: PrecursorIonSelectionPreprocessing.h:148
const std::map< String, std::vector< double > > & getProtMasses() const
void savePreprocessedDBWithRT_(const String &db_path, const String &path)
void loadPreprocessedDB_(const String &path)
loads the preprocessed db
const std::map< String, std::vector< double > > & getProteinRTMap() const
std::map< String, std::vector< double > > rt_prot_map_
Definition: PrecursorIonSelectionPreprocessing.h:159
const std::map< String, std::vector< String > > & getProteinPeptideSequenceMap() const
A more convenient string class.
Definition: String.h:60
int Int
Signed integer type.
Definition: Types.h:102
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
FASTA entry type (identifier, description and sequence) The first String corresponds to the identifie...
Definition: FASTAFile.h:72