115 return fixed_modifications_;
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
An LC-MS feature.
Definition: Feature.h:72
This class implements the database preprocessing needing for precursor ion selection.
Definition: PrecursorIonSelectionPreprocessing.h:54
void loadPreprocessedDB_(String path)
loads the preprocessed db
double getRT(String prot_id, Size peptide_index)
std::map< String, std::vector< String > > prot_peptide_seq_map_
Definition: PrecursorIonSelectionPreprocessing.h:161
~PrecursorIonSelectionPreprocessing() override
void savePreprocessedDB_(String db_path, String path)
saves the preprocessed db
const std::map< char, std::vector< String > > & getFixedModifications()
Definition: PrecursorIonSelectionPreprocessing.h:113
void savePreprocessedDBWithRT_(String db_path, String path)
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
UInt f_max_
maximal relative frequency of a mass
Definition: PrecursorIonSelectionPreprocessing.h:156
void dbPreprocessing(String db_path, String rt_model_path, String dt_model_path, bool save=true)
Calculates tryptic peptide masses of a given database and stores masses and peptide sequences.
double mu_
Definition: PrecursorIonSelectionPreprocessing.h:164
double getPT(String prot_id, Size peptide_index)
bool fixed_mods_
Definition: PrecursorIonSelectionPreprocessing.h:158
std::vector< double > masses_
all tryptic masses of the distinct peptides in the database
Definition: PrecursorIonSelectionPreprocessing.h:146
double getRTProbability_(double min_obs_rt, double max_obs_rt, double pred_rt)
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.
const std::vector< double > & getMasses(String acc) const
void setGaussianParameters(double mu, double sigma)
PrecursorIonSelectionPreprocessing(const PrecursorIonSelectionPreprocessing &source)
void updateMembers_() override
update members method from DefaultParamHandler to update the members
void dbPreprocessing(String db_path, bool save=true)
Calculates tryptic peptide masses of a given database and stores masses and peptide sequences.
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
double getRTProbability(String prot_id, Size peptide_index, Feature &feature)
std::set< AASequence > sequences_
the sequences of the tryptic peptides
Definition: PrecursorIonSelectionPreprocessing.h:148
const std::map< String, std::vector< double > > & getProtMasses() const
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:47
FASTA entry type (identifier, description and sequence) The first String corresponds to the identifie...
Definition: FASTAFile.h:72