|
OpenMS
2.6.0
|
Go to the documentation of this file.
43 #include <boost/unordered_map.hpp>
46 #include <unordered_set>
51 struct ScoreToTgtDecLabelPairs;
90 void apply(std::vector<PeptideIdentification>& fwd_ids, std::vector<PeptideIdentification>& rev_ids)
const;
97 void apply(std::vector<PeptideIdentification>&
id)
const;
105 void apply(std::vector<ProteinIdentification>& fwd_ids, std::vector<ProteinIdentification>& rev_ids)
const;
112 void apply(std::vector<ProteinIdentification>& ids)
const;
119 void applyEstimated(std::vector<ProteinIdentification>& ids)
const;
130 double applyEvaluateProteinIDs(
const std::vector<ProteinIdentification>& ids,
double pepCutoff = 1.0,
UInt fpCutoff = 50,
double diffWeight = 0.2);
131 double applyEvaluateProteinIDs(
const ProteinIdentification& ids,
double pepCutoff = 1.0,
UInt fpCutoff = 50,
double diffWeight = 0.2);
132 double applyEvaluateProteinIDs(
ScoreToTgtDecLabelPairs& score_to_tgt_dec_fraction_pairs,
double pepCutoff = 1.0,
UInt fpCutoff = 50,
double diffWeight = 0.2);
135 void applyBasic(std::vector<PeptideIdentification> & ids);
137 void applyBasic(
ConsensusMap & cmap,
bool use_unassigned_peptides =
true);
143 double rocN(
const std::vector<PeptideIdentification>& ids,
Size fp_cutoff)
const;
147 double rocN(
const std::vector<PeptideIdentification>& ids,
Size fp_cutoff,
const String& identifier)
const;
186 void calculateFDRs_(std::map<double, double>& score_to_fdr, std::vector<double>& target_scores, std::vector<double>& decoy_scores,
bool q_value,
bool higher_score_better)
const;
189 void handleQueryMatch_(
192 std::vector<double>& target_scores,
193 std::vector<double>& decoy_scores,
194 std::map<IdentificationData::IdentifiedMoleculeRef, bool>& molecule_to_decoy,
195 std::map<IdentificationData::QueryMatchRef, double>& match_to_score)
const;
199 void calculateEstimatedQVal_(std::map<double, double> &scores_to_FDR,
201 bool higher_score_better)
const;
208 void calculateFDRBasic_(std::map<double,double>& scores_to_FDR,
ScoreToTgtDecLabelPairs& scores_labels,
bool qvalue,
bool higher_score_better)
const;
212 double trapezoidal_area_xEqy(
double exp1,
double exp2,
double act1,
double act2)
const;
215 double trapezoidal_area(
double x1,
double x2,
double y1,
double y2)
const;
Base class for TOPP applications.
Definition: TOPPBase.h:144
Param copy(const String &prefix, bool remove_prefix=false) const
Returns a new Param object containing all entries that start with prefix.
void apply(std::vector< PeptideIdentification > &fwd_ids, std::vector< PeptideIdentification > &rev_ids) const
Calculates the FDR of two runs, a forward run and a decoy run on peptide level.
void store(const String &filename, const std::vector< ProteinIdentification > &protein_ids, const std::vector< PeptideIdentification > &peptide_ids, const String &document_id="")
Stores the data in an idXML file.
A more convenient string class.
Definition: String.h:59
static void updateProteinReferences(std::vector< PeptideIdentification > &peptides, const std::vector< ProteinIdentification > &proteins, bool remove_peptides_without_reference=false)
Removes references to missing proteins.
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
static bool updateProteinGroups(std::vector< ProteinIdentification::ProteinGroup > &groups, const std::vector< ProteinHit > &hits)
Update protein groups after protein hits were filtered.
#define OPENMS_LOG_WARN
Macro if a warning, a piece of information which should be read by the user, should be logged.
Definition: LogStream.h:460
Representation of a protein identification run.
Definition: ProteinIdentification.h:70
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
void load(const String &filename, std::vector< ProteinIdentification > &protein_ids, std::vector< PeptideIdentification > &peptide_ids)
Loads the identifications of an idXML file without identifier.
#define OPENMS_LOG_FATAL_ERROR
Macro to be used if fatal error are reported (processing stops)
Definition: LogStream.h:450
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
static void removeUnreferencedProteins(ConsensusMap &cmap, bool include_unassigned)
Wrapper that adds operator< to iterators, so they can be used as (part of) keys in maps/sets or multi...
Definition: MetaData.h:43
static void updateHitRanks(std::vector< IdentificationType > &ids)
Updates the hit ranks on all peptide or protein IDs.
Definition: IDFilter.h:740
void setParameters(const Param ¶m)
Sets the parameters.
const Param & getDefaults() const
Non-mutable access to the default parameters.
static Size countHits(const std::vector< IdentificationType > &ids)
Returns the total number of peptide/protein hits in a vector of peptide/protein identifications.
Definition: IDFilter.h:613
A container for consensus elements.
Definition: ConsensusMap.h:80
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Calculates false discovery rates (FDR) from identifications.
Definition: FalseDiscoveryRate.h:77
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
Representation of spectrum identification results and associated data.
Definition: IdentificationData.h:89
Definition: IDScoreGetterSetter.h:53
static void removeEmptyIdentifications(std::vector< IdentificationType > &ids)
Removes peptide or protein identifications that have no hits in them.
Definition: IDFilter.h:810
const char * getMessage() const noexcept
Returns the message.
Management and storage of parameters / INI files.
Definition: Param.h:73
void applyBasic(std::vector< PeptideIdentification > &ids)
simpler reimplemetation of the apply function above.
static void filterHitsByScore(std::vector< IdentificationType > &ids, double threshold_score)
Filters peptide or protein identifications according to the score of the hits.
Definition: IDFilter.h:822
#define OPENMS_LOG_INFO
Macro if a information, e.g. a status should be reported.
Definition: LogStream.h:465
Used to load and store idXML files.
Definition: IdXMLFile.h:63