101 std::vector< double >& fdr,
bool mono)
const;
108 static void calc_qfdr_(
const std::vector< double >& fdr, std::vector< double >& qfdr);
120 return std::min(alpha_ions, beta_ions);
139 const String &decoy_string)
145 return prot1 == prot2;
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:33
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
Representation of a histogram.
Definition: Histogram.h:38
Representation of a peptide hit.
Definition: PeptideHit.h:31
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:27
Representation of a protein identification run.
Definition: ProteinIdentification.h:50
A more convenient string class.
Definition: String.h:34
bool hasSubstring(const String &string) const
true if String contains the string, false otherwise
String & substitute(char from, char to)
Replaces all occurrences of the character from by the character to.
Calculates false discovery rate estimates on crosslink identifications.
Definition: XFDRAlgorithm.h:41
static const String crosslink_class_intralinks_
Definition: XFDRAlgorithm.h:187
ExitCodes validateClassArguments() const
Checks whether the parameters of the object are valid.
bool arg_no_qvalues_
Definition: XFDRAlgorithm.h:167
static const String param_binsize_
Definition: XFDRAlgorithm.h:179
static const String crosslink_class_intradecoys_
Definition: XFDRAlgorithm.h:182
static const String crosslink_class_decoys_
Definition: XFDRAlgorithm.h:190
ExitCodes run(std::vector< PeptideIdentification > &peptide_ids, ProteinIdentification &protein_id)
Performs the main function of this class, the FDR estimation for cross-linked peptide experiments.
std::map< String, std::vector< String > > cross_link_classes_
Definition: XFDRAlgorithm.h:157
static void setIntraProtein_(PeptideHit &ph, const bool value)
Definition: XFDRAlgorithm.h:123
static const String crosslink_class_interdecoys_
Definition: XFDRAlgorithm.h:184
static void calc_qfdr_(const std::vector< double > &fdr, std::vector< double > &qfdr)
Calculates the qFDR values for the provided FDR values, assuming that the FDRs are sorted by score in...
static const String param_no_qvalues_
Definition: XFDRAlgorithm.h:177
String decoy_string_
Definition: XFDRAlgorithm.h:160
static const String crosslink_class_targets_
Definition: XFDRAlgorithm.h:191
bool arg_uniquex_
Definition: XFDRAlgorithm.h:166
void fdr_xprophet_(std::map< String, Math::Histogram<> > &cum_histograms, const String &targetclass, const String &decoyclass, const String &fulldecoyclass, std::vector< double > &fdr, bool mono) const
xprophet method for target hits counting as implemented in xProphet
double arg_minscore_
Definition: XFDRAlgorithm.h:165
XFDRAlgorithm()
Default constructor.
static bool isSameProtein_(String prot1, String prot2, const String &decoy_string)
Determines whether the Peptide Evidences belong to the same protein, modulo decoy.
Definition: XFDRAlgorithm.h:136
double arg_mindeltas_
Definition: XFDRAlgorithm.h:161
static const String crosslink_class_fulldecoysinterlinks_
Definition: XFDRAlgorithm.h:185
static const String crosslink_class_hybriddecoysinterlinks_
Definition: XFDRAlgorithm.h:193
static const String param_mindeltas_
Definition: XFDRAlgorithm.h:174
String getId_(const PeptideHit &ph) const
void initDataStructures_(std::vector< PeptideIdentification > &peptide_ids, ProteinIdentification &protein_id)
Prepares vector of PeptideIdentification such that it can be processed downstream....
Int min_score_
Definition: XFDRAlgorithm.h:149
void findTopUniqueHits_(std::vector< PeptideIdentification > &peptide_ids)
static const String crosslink_class_monolinks_
Definition: XFDRAlgorithm.h:189
static const String crosslink_class_hybriddecoysintralinks_
Definition: XFDRAlgorithm.h:192
std::vector< double > unique_id_scores_
Definition: XFDRAlgorithm.h:154
void writeArgumentsLog_() const
std::vector< String > unique_ids_
Definition: XFDRAlgorithm.h:153
static const String param_decoy_string_
Definition: XFDRAlgorithm.h:171
static Size getMinIonsMatched_(const PeptideHit &ph)
Definition: XFDRAlgorithm.h:116
static const String param_maxborder_
Definition: XFDRAlgorithm.h:173
static const String param_uniquexl_
Definition: XFDRAlgorithm.h:176
Int max_score_
Definition: XFDRAlgorithm.h:150
static void setInterProtein_(PeptideHit &ph, const bool value)
Definition: XFDRAlgorithm.h:128
static const String param_minborder_
Definition: XFDRAlgorithm.h:172
static const String param_minscore_
Definition: XFDRAlgorithm.h:178
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
static const String crosslink_class_fulldecoysintralinks_
Definition: XFDRAlgorithm.h:183
ExitCodes
Exit codes.
Definition: XFDRAlgorithm.h:47
@ ILLEGAL_PARAMETERS
Definition: XFDRAlgorithm.h:49
@ EXECUTION_OK
Definition: XFDRAlgorithm.h:48
static void assignTypes_(PeptideHit &pep_id, StringList &types)
Inspects a PeptideIdentification and assigns all cross-link types that this identification belongs to...
static const String crosslink_class_monodecoys_
Definition: XFDRAlgorithm.h:186
double arg_minborder_
Definition: XFDRAlgorithm.h:162
double arg_maxborder_
Definition: XFDRAlgorithm.h:163
Int arg_minionsmatched_
Definition: XFDRAlgorithm.h:164
static const String crosslink_class_interlinks_
Definition: XFDRAlgorithm.h:188
double arg_binsize_
Definition: XFDRAlgorithm.h:168
~XFDRAlgorithm() override
Default destructor.
static const String param_minionsmatched_
Definition: XFDRAlgorithm.h:175
int Int
Signed integer type.
Definition: Types.h:76
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22