35 #ifndef OPENMS_ANALYSIS_QUANTITATION_PEPTIDEANDPROTEINQUANT_H 36 #define OPENMS_ANALYSIS_QUANTITATION_PEPTIDEANDPROTEINQUANT_H 121 n_samples(0), quant_proteins(0), too_few_peptides(0),
122 quant_peptides(0), total_peptides(0), quant_features(0),
123 total_features(0), blank_features(0), ambig_features(0) {}
151 void readQuantData(std::vector<ProteinIdentification>& proteins,
152 std::vector<PeptideIdentification>& peptides);
163 void quantifyPeptides(
const std::vector<PeptideIdentification>& peptides =
164 std::vector<PeptideIdentification>());
179 const PeptideQuant& getPeptideResults();
182 const ProteinQuant& getProteinResults();
202 PeptideHit getAnnotation_(std::vector<PeptideIdentification>& peptides);
216 template <
typename T>
217 void orderBest_(
const std::map<T, SampleAbundances> abundances,
218 std::vector<T>& result)
220 typedef std::pair<Size, double> PairType;
221 std::multimap<PairType, T, std::greater<PairType> > order;
222 for (
typename std::map<T, SampleAbundances>::const_iterator ab_it =
223 abundances.begin(); ab_it != abundances.end(); ++ab_it)
226 for (SampleAbundances::const_iterator samp_it = ab_it->second.begin();
227 samp_it != ab_it->second.end(); ++samp_it)
229 total += samp_it->second;
231 if (total <= 0.0)
continue;
232 PairType key = std::make_pair(ab_it->second.size(), total);
233 order.insert(std::make_pair(key, ab_it->first));
236 for (
typename std::multimap<PairType, T, std::greater<PairType> >::
237 iterator ord_it = order.begin(); ord_it != order.end(); ++ord_it)
239 result.push_back(ord_it->second);
246 void normalizePeptides_();
260 String getAccession_(
const std::set<String>& pep_accessions,
261 std::map<String, String>& accession_to_leader);
268 void countPeptides_(std::vector<PeptideIdentification>& peptides);
271 void updateMembers_();
277 #endif // OPENMS_ANALYSIS_QUANTITATION_PEPTIDEANDPROTEINQUANT_H Size too_few_peptides
Definition: PeptideAndProteinQuant.h:111
Representation of a protein identification run.
Definition: ProteinIdentification.h:62
Statistics()
constructor
Definition: PeptideAndProteinQuant.h:120
Size total_peptides
Definition: PeptideAndProteinQuant.h:114
A more convenient string class.
Definition: String.h:57
Size n_samples
number of samples
Definition: PeptideAndProteinQuant.h:108
ProteinData()
constructor
Definition: PeptideAndProteinQuant.h:97
A container for features.
Definition: FeatureMap.h:94
Size total_features
Definition: PeptideAndProteinQuant.h:117
A container for consensus elements.
Definition: ConsensusMap.h:72
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::set< String > accessions
protein accessions for this peptide
Definition: PeptideAndProteinQuant.h:71
PeptideQuant pep_quant_
Peptide quantification data.
Definition: PeptideAndProteinQuant.h:190
~PeptideAndProteinQuant()
Destructor.
Definition: PeptideAndProteinQuant.h:130
std::map< String, ProteinData > ProteinQuant
Mapping: protein accession -> protein data.
Definition: PeptideAndProteinQuant.h:102
std::map< Int, SampleAbundances > abundances
mapping: charge -> sample -> abundance
Definition: PeptideAndProteinQuant.h:65
std::map< AASequence, PeptideData > PeptideQuant
Mapping: peptide sequence (modified) -> peptide data.
Definition: PeptideAndProteinQuant.h:82
PeptideData()
constructor
Definition: PeptideAndProteinQuant.h:77
Helper class for peptide and protein quantification based on feature data annotated with IDs...
Definition: PeptideAndProteinQuant.h:53
Representation of a peptide hit.
Definition: PeptideHit.h:55
Size id_count
number of identifications
Definition: PeptideAndProteinQuant.h:74
Quantitative and associated data for a peptide.
Definition: PeptideAndProteinQuant.h:62
Statistics stats_
Processing statistics for output in the end.
Definition: PeptideAndProteinQuant.h:187
SampleAbundances total_abundances
mapping: sample -> total abundance
Definition: PeptideAndProteinQuant.h:68
SampleAbundances total_abundances
mapping: sample -> total abundance
Definition: PeptideAndProteinQuant.h:91
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
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:217
Representation of a Peak2D, RichPeak2D or Feature .
Definition: FeatureHandle.h:58
Statistics for processing summary.
Definition: PeptideAndProteinQuant.h:105
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
std::map< String, SampleAbundances > abundances
mapping: peptide (unmodified) -> sample -> abundance
Definition: PeptideAndProteinQuant.h:88
Quantitative and associated data for a protein.
Definition: PeptideAndProteinQuant.h:85
Size id_count
total number of identifications (of peptides mapping to this protein)
Definition: PeptideAndProteinQuant.h:94
ProteinQuant prot_quant_
Protein quantification data.
Definition: PeptideAndProteinQuant.h:193
std::map< UInt64, double > SampleAbundances
Mapping: sample ID -> abundance.
Definition: PeptideAndProteinQuant.h:59