43 #include <unordered_map> 46 #include <unordered_set> 51 struct ScoreToTgtDecLabelPairs;
90 void apply(std::vector<PeptideIdentification>& fwd_ids, std::vector<PeptideIdentification>& rev_ids)
const;
98 void apply(std::vector<PeptideIdentification>&
id,
bool annotate_peptide_fdr =
false)
const;
106 void apply(std::vector<ProteinIdentification>& fwd_ids, std::vector<ProteinIdentification>& rev_ids)
const;
113 void apply(std::vector<ProteinIdentification>& ids)
const;
120 void applyEstimated(std::vector<ProteinIdentification>& ids)
const;
131 double applyEvaluateProteinIDs(
const std::vector<ProteinIdentification>& ids,
double pepCutoff = 1.0,
UInt fpCutoff = 50,
double diffWeight = 0.2)
const;
141 double applyEvaluateProteinIDs(
const ProteinIdentification& ids,
double pepCutoff = 1.0,
UInt fpCutoff = 50,
double diffWeight = 0.2)
const;
152 double applyEvaluateProteinIDs(
ScoreToTgtDecLabelPairs& score_to_tgt_dec_fraction_pairs,
double pepCutoff = 1.0,
UInt fpCutoff = 50,
double diffWeight = 0.2)
const;
155 void applyBasic(
const std::vector<ProteinIdentification> & run_info, std::vector<PeptideIdentification> & ids);
158 void applyBasic(std::vector<PeptideIdentification> & ids,
bool higher_score_better,
int charge = 0,
String identifier =
"",
bool only_best_per_pep =
false);
161 void applyBasicPeptideLevel(std::vector<PeptideIdentification> & ids);
164 void applyBasicPeptideLevel(
ConsensusMap & ids,
bool use_unassigned_peptides =
true);
166 void applyBasic(
ConsensusMap & cmap,
bool use_unassigned_peptides =
true);
183 double rocN(
const std::vector<PeptideIdentification>& ids,
Size fp_cutoff)
const;
187 double rocN(
const std::vector<PeptideIdentification>& ids,
Size fp_cutoff,
const String& identifier)
const;
191 double rocN(
const ConsensusMap& ids,
Size fp_cutoff,
bool include_unassigned_peptides =
false)
const;
195 double rocN(
const ConsensusMap& ids,
Size fp_cutoff,
const String& identifier,
bool include_unassigned_peptides =
false)
const;
249 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;
252 void handleObservationMatch_(
255 std::vector<double>& target_scores,
256 std::vector<double>& decoy_scores,
257 std::map<IdentificationData::IdentifiedMolecule, bool>& molecule_to_decoy,
258 std::map<IdentificationData::ObservationMatchRef, double>& match_to_score)
const;
262 void calculateEstimatedQVal_(std::map<double, double> &scores_to_FDR,
264 bool higher_score_better)
const;
271 void calculateFDRBasic_(std::map<double,double>& scores_to_FDR,
ScoreToTgtDecLabelPairs& scores_labels,
bool qvalue,
bool higher_score_better)
const;
275 double trapezoidal_area_xEqy(
double exp1,
double exp2,
double act1,
double act2)
const;
278 double trapezoidal_area(
double x1,
double x2,
double y1,
double y2)
const;
Representation of a protein identification run.
Definition: ProteinIdentification.h:74
A more convenient string class.
Definition: String.h:58
Definition: IDScoreGetterSetter.h:55
bool success
did more than 30% of proteins have the *same* prefix or suffix
Definition: FalseDiscoveryRate.h:227
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Definition: IdentificationData.h:112
A container for consensus elements.
Definition: ConsensusMap.h:82
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Finds the most common decoy string in the accessions of proteins. Checks for suffix and prefix and so...
Definition: FalseDiscoveryRate.h:225
static String prefix(const String &this_s, size_t length)
Definition: StringUtilsSimple.h:147
bool is_prefix
on success, was it a prefix or suffix
Definition: FalseDiscoveryRate.h:229
Finds decoy strings in ProteinIdentification runs.
Definition: FalseDiscoveryRate.h:219
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
String name
on success, what was the decoy string?
Definition: FalseDiscoveryRate.h:228
Calculates false discovery rates (FDR) from identifications.
Definition: FalseDiscoveryRate.h:77
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
Wrapper that adds operator< to iterators, so they can be used as (part of) keys in maps/sets or multi...
Definition: MetaData.h:45