120 n_samples(0), quant_proteins(0), too_few_peptides(0),
121 quant_peptides(0), total_peptides(0), quant_features(0),
122 total_features(0), blank_features(0), ambig_features(0) {}
150 void readQuantData(std::vector<ProteinIdentification>& proteins,
151 std::vector<PeptideIdentification>& peptides);
162 void quantifyPeptides(
const std::vector<PeptideIdentification>& peptides =
163 std::vector<PeptideIdentification>());
175 const Statistics& getStatistics();
178 const PeptideQuant& getPeptideResults();
181 const ProteinQuant& getProteinResults();
201 PeptideHit getAnnotation_(std::vector<PeptideIdentification>& peptides);
215 template <
typename T>
216 void orderBest_(
const std::map<T, SampleAbundances> & abundances,
217 std::vector<T>& result)
219 typedef std::pair<Size, double> PairType;
220 std::multimap<PairType, T, std::greater<PairType> > order;
221 for (
typename std::map<T, SampleAbundances>::const_iterator ab_it =
222 abundances.begin(); ab_it != abundances.end(); ++ab_it)
225 for (SampleAbundances::const_iterator samp_it = ab_it->second.begin();
226 samp_it != ab_it->second.end(); ++samp_it)
228 total += samp_it->second;
230 if (total <= 0.0)
continue;
231 PairType key = std::make_pair(ab_it->second.size(), total);
232 order.insert(std::make_pair(key, ab_it->first));
235 for (
typename std::multimap<PairType, T, std::greater<PairType> >::
236 iterator ord_it = order.begin(); ord_it != order.end(); ++ord_it)
238 result.push_back(ord_it->second);
245 void normalizePeptides_();
259 String getAccession_(
const std::set<String>& pep_accessions,
260 std::map<String, String>& accession_to_leader);
267 void countPeptides_(std::vector<PeptideIdentification>& peptides);
270 void updateMembers_()
override;
Size too_few_peptides
Definition: PeptideAndProteinQuant.h:110
Representation of a protein identification run.
Definition: ProteinIdentification.h:61
Statistics()
constructor
Definition: PeptideAndProteinQuant.h:119
Size total_peptides
Definition: PeptideAndProteinQuant.h:113
A more convenient string class.
Definition: String.h:57
Size n_samples
number of samples
Definition: PeptideAndProteinQuant.h:107
ProteinData()
constructor
Definition: PeptideAndProteinQuant.h:96
A container for features.
Definition: FeatureMap.h:93
Size total_features
Definition: PeptideAndProteinQuant.h:116
A container for consensus elements.
Definition: ConsensusMap.h:75
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
~PeptideAndProteinQuant() override
Destructor.
Definition: PeptideAndProteinQuant.h:129
std::set< String > accessions
protein accessions for this peptide
Definition: PeptideAndProteinQuant.h:70
PeptideQuant pep_quant_
Peptide quantification data.
Definition: PeptideAndProteinQuant.h:189
std::map< String, ProteinData > ProteinQuant
Mapping: protein accession -> protein data.
Definition: PeptideAndProteinQuant.h:101
std::map< Int, SampleAbundances > abundances
mapping: charge -> sample -> abundance
Definition: PeptideAndProteinQuant.h:64
std::map< AASequence, PeptideData > PeptideQuant
Mapping: peptide sequence (modified) -> peptide data.
Definition: PeptideAndProteinQuant.h:81
PeptideData()
constructor
Definition: PeptideAndProteinQuant.h:76
Helper class for peptide and protein quantification based on feature data annotated with IDs...
Definition: PeptideAndProteinQuant.h:52
Representation of a peptide hit.
Definition: PeptideHit.h:54
Size id_count
number of identifications
Definition: PeptideAndProteinQuant.h:73
Quantitative and associated data for a peptide.
Definition: PeptideAndProteinQuant.h:61
Statistics stats_
Processing statistics for output in the end.
Definition: PeptideAndProteinQuant.h:186
SampleAbundances total_abundances
mapping: sample -> total abundance
Definition: PeptideAndProteinQuant.h:67
SampleAbundances total_abundances
mapping: sample -> total abundance
Definition: PeptideAndProteinQuant.h:90
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Representation of a Peak2D, RichPeak2D or Feature .
Definition: FeatureHandle.h:57
Statistics for processing summary.
Definition: PeptideAndProteinQuant.h:104
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
void orderBest_(const std::map< T, SampleAbundances > &abundances, std::vector< T > &result)
Order keys (charges/peptides for peptide/protein quantification) according to how many samples they a...
Definition: PeptideAndProteinQuant.h:216
std::map< String, SampleAbundances > abundances
mapping: peptide (unmodified) -> sample -> abundance
Definition: PeptideAndProteinQuant.h:87
Quantitative and associated data for a protein.
Definition: PeptideAndProteinQuant.h:84
Size id_count
total number of identifications (of peptides mapping to this protein)
Definition: PeptideAndProteinQuant.h:93
ProteinQuant prot_quant_
Protein quantification data.
Definition: PeptideAndProteinQuant.h:192
std::map< UInt64, double > SampleAbundances
Mapping: sample ID -> abundance.
Definition: PeptideAndProteinQuant.h:58