OpenMS
Loading...
Searching...
No Matches
NuXLFDR.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Timo Sachsenberg $
7// --------------------------------------------------------------------------
8
9#pragma once
10
17#include <vector>
18
19namespace OpenMS
20{
21
36class OPENMS_DLLAPI NuXLFDR
37{
38 public:
49 explicit NuXLFDR(size_t report_top_hits);
50
73 PeptideIdentificationList& xl_pi) const;
74
97 const PeptideIdentificationList& xl_pi,
98 PeptideIdentificationList& peptide_ids) const;
99
112
127 PeptideIdentificationList& xl_pi) const;
128
183 const std::vector<ProteinIdentification>& protein_ids,
184 const PeptideIdentificationList& peptide_ids,
186 double peptide_PSM_qvalue_threshold,
187 double peptide_peptide_qvalue_threshold,
189 std::vector<double> xl_PSM_qvalue_thresholds,
190 std::vector<double> xl_peptidelevel_qvalue_thresholds,
191 const std::string& out_idxml,
192 int decoy_factor) const;
193
194 private:
196};
197
198}
199
200
Class-separated FDR calculation for nucleic-acid cross-links (NuXL).
Definition NuXLFDR.h:37
void splitIntoPeptidesAndXLs(const PeptideIdentificationList &peptide_ids, PeptideIdentificationList &pep_pi, PeptideIdentificationList &xl_pi) const
Partition peptide_ids into plain-peptide and cross-link PSM lists by their single top hit.
void QValueAtPSMLevel(PeptideIdentificationList &peptide_ids) const
Compute PSM-level q-values across peptide_ids without splitting by class.
NuXLFDR(size_t report_top_hits)
Construct with a top-hit cap that controls how FalseDiscoveryRate is parametrised.
void calculatePeptideAndXLQValueAtPSMLevel(const PeptideIdentificationList &peptide_ids, PeptideIdentificationList &pep_pi, PeptideIdentificationList &xl_pi) const
Compute PSM- and peptide-level q-values separately for plain and cross-linked PSMs.
size_t report_top_hits_
Top-hit cap consulted by the FDR-applying methods to toggle use_all_hits.
Definition NuXLFDR.h:195
void calculatePeptideAndXLQValueAndFilterAtPSMLevel(const std::vector< ProteinIdentification > &protein_ids, const PeptideIdentificationList &peptide_ids, PeptideIdentificationList &pep, double peptide_PSM_qvalue_threshold, double peptide_peptide_qvalue_threshold, PeptideIdentificationList &xl_pi, std::vector< double > xl_PSM_qvalue_thresholds, std::vector< double > xl_peptidelevel_qvalue_thresholds, const std::string &out_idxml, int decoy_factor) const
Compute separated FDRs, apply class-specific filters, and write per-threshold idXML / TSV reports.
void mergePeptidesAndXLs(const PeptideIdentificationList &pep_pi, const PeptideIdentificationList &xl_pi, PeptideIdentificationList &peptide_ids) const
Re-merge a previously split (splitIntoPeptidesAndXLs) pair of lists into one PSM list.
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19