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
69 PeptideIdentificationList& xl_pi) const;
70
88 const PeptideIdentificationList& xl_pi,
89 PeptideIdentificationList& peptide_ids) const;
90
103
118 PeptideIdentificationList& xl_pi) const;
119
174 const std::vector<ProteinIdentification>& protein_ids,
175 const PeptideIdentificationList& peptide_ids,
177 double peptide_PSM_qvalue_threshold,
178 double peptide_peptide_qvalue_threshold,
180 std::vector<double> xl_PSM_qvalue_thresholds,
181 std::vector<double> xl_peptidelevel_qvalue_thresholds,
182 const std::string& out_idxml,
183 int decoy_factor) const;
184
185 private:
187};
188
189}
190
191
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.
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:186
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