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
65 static void addMSGFFeatures(PeptideIdentificationList& peptide_ids, StringList& feature_set);
66
74 static void addXTANDEMFeatures(PeptideIdentificationList& peptide_ids, StringList& feature_set);
75
83 static void addCOMETFeatures(PeptideIdentificationList& peptide_ids, StringList& feature_set);
84
97 static void addANDESFeatures(PeptideIdentificationList& peptide_ids, StringList& feature_set);
98
106 static void addMASCOTFeatures(PeptideIdentificationList& peptide_ids, StringList& feature_set);
107
115 static void checkExtraFeatures(const std::vector<PeptideHit> &psms, StringList& extra_features);
116
123 static void addMSFRAGGERFeatures(StringList& extra_features);
124
125
126 protected:
128 static double rescaleFragmentFeature_(double featureValue, int NumMatchedMainIons);
129
131 static void assignDeltaScore_(std::vector<PeptideHit>& hits, const std::string& score_ref, const std::string& output_ref);
132
135 {
136 inline bool operator() (const ProteinHit& h1, const ProteinHit& h2)
137 {
138 return (h1.getAccession() < h2.getAccession());
139 }
140 };
141
142 };
143
144} //namespace OpenMS
145
146
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:135