OpenMS
Loading...
Searching...
No Matches
PercolatorFeatureSetHelper.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Mathias Walzer $
6// $Authors: Mathias Walzer, Matthew The $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <vector>
12#include <cmath>
13#include <string>
14#include <map>
15// #include <algorithm>
16#include <limits>
17
24
25namespace OpenMS
26{
37 class OPENMS_DLLAPI PercolatorFeatureSetHelper
38 {
39
40 public:
50 static void mergeMULTISEProteinIds(std::vector<ProteinIdentification>& all_protein_ids, std::vector<ProteinIdentification>& new_protein_ids);
51
52
60 static void addMSGFFeatures(PeptideIdentificationList& peptide_ids, StringList& feature_set);
61
69 static void addXTANDEMFeatures(PeptideIdentificationList& peptide_ids, StringList& feature_set);
70
78 static void addCOMETFeatures(PeptideIdentificationList& peptide_ids, StringList& feature_set);
79
92 static void addANDESFeatures(PeptideIdentificationList& peptide_ids, StringList& feature_set);
93
101 static void addMASCOTFeatures(PeptideIdentificationList& peptide_ids, StringList& feature_set);
102
110 static void checkExtraFeatures(const std::vector<PeptideHit> &psms, StringList& extra_features);
111
118 static void addMSFRAGGERFeatures(StringList& extra_features);
119
120
121 protected:
123 static double rescaleFragmentFeature_(double featureValue, int NumMatchedMainIons);
124
126 static void assignDeltaScore_(std::vector<PeptideHit>& hits, const std::string& score_ref, const std::string& output_ref);
127
130 {
131 inline bool operator() (const ProteinHit& h1, const ProteinHit& h2)
132 {
133 return (h1.getAccession() < h2.getAccession());
134 }
135 };
136
137 };
138
139} //namespace OpenMS
140
141
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Percolator feature set and integration helper.
Definition PercolatorFeatureSetHelper.h:38
static void addMSFRAGGERFeatures(StringList &extra_features)
addMSFraggerFeatures
static void addMASCOTFeatures(PeptideIdentificationList &peptide_ids, StringList &feature_set)
addMASCOTFeatures
static void addXTANDEMFeatures(PeptideIdentificationList &peptide_ids, StringList &feature_set)
addXTANDEMFeatures
static void addMSGFFeatures(PeptideIdentificationList &peptide_ids, StringList &feature_set)
addMSGFFeatures
static void addCOMETFeatures(PeptideIdentificationList &peptide_ids, StringList &feature_set)
addCOMETFeatures
static void checkExtraFeatures(const std::vector< PeptideHit > &psms, StringList &extra_features)
checkExtraFeatures
static void mergeMULTISEProteinIds(std::vector< ProteinIdentification > &all_protein_ids, std::vector< ProteinIdentification > &new_protein_ids)
mergeMULTISEProteinIds
static double rescaleFragmentFeature_(double featureValue, int NumMatchedMainIons)
Rescales the fragment features to penalize features calculated by few ions, adapted from MSGFtoPercol...
static void assignDeltaScore_(std::vector< PeptideHit > &hits, const std::string &score_ref, const std::string &output_ref)
helper function for assigning the frequently occurring feature delta score
static void addANDESFeatures(PeptideIdentificationList &peptide_ids, StringList &feature_set)
addANDESFeatures
Representation of a protein hit.
Definition ProteinHit.h:34
const std::string & getAccession() const
returns the accession of the protein
std::vector< std::string > StringList
Vector of String.
Definition TypeAliases.h:39
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
For accession dependent sorting of ProteinHits.
Definition PercolatorFeatureSetHelper.h:130