97 void selectPivotIons_(std::vector<Size> & pivots,
Size left,
Size right, std::map<double, IonScore> & CID_nodes,
const PeakSpectrum & CID_orig_spec,
double precursor_weight,
bool full_range =
false);
103 void getDecompositions_(std::vector<MassDecomposition> & decomps,
double mass,
bool no_caching =
false);
145 double min_aa_weight_{};
197 Permut(
const std::set<String>::const_iterator & permut,
double s) :
216 const std::set<String>::const_iterator &
getPermut()
const
221 void setPermut(
const std::set<String>::const_iterator & it)
Representation of a peptide/protein sequence.
Definition: AASequence.h:112
Simple class to store permutations and a score.
Definition: CompNovoIdentificationBase.h:187
double getScore() const
Definition: CompNovoIdentificationBase.h:226
Permut(const Permut &rhs)=default
Permut & operator=(const Permut &rhs)
Definition: CompNovoIdentificationBase.h:206
const std::set< String >::const_iterator & getPermut() const
Definition: CompNovoIdentificationBase.h:216
Permut(const std::set< String >::const_iterator &permut, double s)
Definition: CompNovoIdentificationBase.h:197
virtual ~Permut()=default
void setPermut(const std::set< String >::const_iterator &it)
Definition: CompNovoIdentificationBase.h:221
std::set< String >::const_iterator permut_
Definition: CompNovoIdentificationBase.h:238
Permut()
Definition: CompNovoIdentificationBase.h:190
double score_
Definition: CompNovoIdentificationBase.h:239
void setScore(double score)
Definition: CompNovoIdentificationBase.h:231
run with CompNovoIdentificationBase
Definition: CompNovoIdentificationBase.h:59
Size max_isotope_
Definition: CompNovoIdentificationBase.h:169
std::map< char, double > aa_to_weight_
masses of the amino acids
Definition: CompNovoIdentificationBase.h:141
Size max_number_aa_per_decomp_
Definition: CompNovoIdentificationBase.h:151
double max_mz_
Definition: CompNovoIdentificationBase.h:161
bool tryptic_only_
Definition: CompNovoIdentificationBase.h:153
void getCIDSpectrumLight_(PeakSpectrum &spec, const String &sequence, double prefix, double suffix)
fills the spec with b and y ions, no other ion types or doubly charged variants are used
void getETDSpectrum_(PeakSpectrum &spec, const String &sequence, Size, double prefix=0.0, double suffix=0.0)
fills the spectrum with c and z type ions
static void permute_(const String &prefix, String s, std::set< String > &permutations)
permutes the String s adds the prefix and stores the results in permutations
void filterPermuts_(std::set< String > &permut) const
filters the permutations
MassDecompositionAlgorithm mass_decomp_algorithm_
Definition: CompNovoIdentificationBase.h:143
Size countMissedCleavagesTryptic_(const String &peptide) const
Size max_number_pivot_
Definition: CompNovoIdentificationBase.h:157
std::map< char, const Residue * > name_to_residue_
mapping for the internal representation character to the actual residue
Definition: CompNovoIdentificationBase.h:135
CompNovoIdentificationBase & operator=(const CompNovoIdentificationBase &source)
assignment operator
String getModifiedStringFromAASequence_(const AASequence &sequence)
returns the internal representation of a given AASequence
void initIsotopeDistributions_()
initializes the score distribution pre-calculated for the use in spectrum generation
void windowMower_(PeakSpectrum &spec, double windowsize, Size no_peaks)
keep for each window of size windowsize in the m/z range of the spectrum exactly no_peaks
void selectPivotIons_(std::vector< Size > &pivots, Size left, Size right, std::map< double, IonScore > &CID_nodes, const PeakSpectrum &CID_orig_spec, double precursor_weight, bool full_range=false)
selects pivot ion of the given range using the scores given in CID_nodes
double max_decomp_weight_
Definition: CompNovoIdentificationBase.h:165
void filterDecomps_(std::vector< MassDecomposition > &decomps)
filters the decomps by the amino acid frequencies
CompNovoIonScoringBase::IonScore IonScore
Definition: CompNovoIdentificationBase.h:86
CompNovoIdentificationBase(const CompNovoIdentificationBase &source)
copy constructor
virtual void getIdentifications(std::vector< PeptideIdentification > &ids, const PeakMap &exp)=0
performs an ProteinIdentification run on a PeakMap
AASequence getModifiedAASequence_(const String &sequence)
returns a modified AASequence from a given internal representation
void getCIDSpectrum_(PeakSpectrum &spec, const String &sequence, Size charge, double prefix=0.0, double suffix=0.0)
fills the spectrum with b,y ions, multiple charged variants; if prefix and suffix weights are given,...
Size max_subscore_number_
Definition: CompNovoIdentificationBase.h:167
std::map< Size, std::map< Size, std::set< String > > > subspec_to_sequences_
Definition: CompNovoIdentificationBase.h:149
std::map< double, std::vector< MassDecomposition > > decomp_cache_
Definition: CompNovoIdentificationBase.h:171
double decomp_weights_precision_
Definition: CompNovoIdentificationBase.h:159
double compareSpectra_(const PeakSpectrum &s1, const PeakSpectrum &s2) const
compares two spectra
~CompNovoIdentificationBase() override
destructor
CompNovoIdentificationBase()
default constructor
std::map< const Residue *, char > residue_to_name_
mapping of the actual residue to the internal representing character
Definition: CompNovoIdentificationBase.h:138
void updateMembers_() override
update members method from DefaultParamHandler to update the members
void getDecompositions_(std::vector< MassDecomposition > &decomps, double mass, bool no_caching=false)
produces mass decompositions using the given mass
double min_mz_
Definition: CompNovoIdentificationBase.h:163
ZhangSimilarityScore zhang_
Definition: CompNovoIdentificationBase.h:147
double fragment_mass_tolerance_
Definition: CompNovoIdentificationBase.h:155
std::map< String, std::set< String > > permute_cache_
Definition: CompNovoIdentificationBase.h:173
std::map< Size, std::vector< double > > isotope_distributions_
Definition: CompNovoIdentificationBase.h:177
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:72
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
Mass decomposition algorithm, given a mass it suggests possible compositions.
Definition: MassDecompositionAlgorithm.h:70
A more convenient string class.
Definition: String.h:60
Similarity score of Zhang.
Definition: ZhangSimilarityScore.h:56
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
bool PermutScoreComparator(const CompNovoIdentificationBase::Permut &p1, const CompNovoIdentificationBase::Permut &p2)
static String suffix(const String &this_s, size_t length)
Definition: StringUtilsSimple.h:156
static String prefix(const String &this_s, size_t length)
Definition: StringUtilsSimple.h:147
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
Definition: CompNovoIonScoringBase.h:68