52 static void store(
const std::string& pin_file,
55 const std::string& enz,
88 bool higher_score_better,
89 const std::string& score_name,
92 std::string decoy_prefix =
"",
93 double threshold = 0.01,
94 bool SageAnnotation =
false);
170 const std::string& enz,
191 const std::string& enz,
251 const std::string& enz,
255 std::vector<std::pair<size_t, size_t>>& rows);
274 const std::string& enz,
282 PIN_SPEC_ID, PIN_SCAN_NR, PIN_LABEL,
PIN_CALC_MASS, PIN_EXP_MASS, PIN_DELTAMASS, PIN_RETENTIONTIME, PIN_MASS,
283 PIN_SCORE, PIN_PEPLEN, PIN_ENZ_N, PIN_ENZ_C, PIN_ENZ_INT, PIN_DM,
PIN_ABSDM, PIN_PEPTIDE, PIN_PROTEINS,
308 template <
bool with_
strings,
typename Exists,
typename Get,
typename Put>
310 double exp_mass,
double retention_time,
const PinEnzyme_& enz,
int min_charge,
int max_charge,
311 Exists&& exists, Get&& get, Put&& put);
317 const std::string& enz,
321 static bool isEnz_(
const char& n,
const char& c,
const std::string& enz);
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition DataValue.h:33
Represents a single spectrum match (candidate) for a specific tandem mass spectrum (MS/MS).
Definition PeptideHit.h:52
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Represents the set of candidates (SpectrumMatches) identified for a single precursor spectrum.
Definition PeptideIdentification.h:66
Class for storing Percolator tab-delimited input files.
Definition PercolatorInfile.h:35
static double getFeatureValue(const DataValue &value, const std::string &feature)
Numeric value of a PIN feature, as the percolator executable reads it.
static double pinHitColumns_(const PeptideHit &hit, bool decoy, const std::string &spec_id, Int scan_number, double exp_mass, double retention_time, const PinEnzyme_ &enz, int min_charge, int max_charge, Exists &&exists, Get &&get, Put &&put)
The PIN columns of one hit: the formulas of the .pin file, shared by stamping and buildFeatureMatrix.
static Size countEnzymatic_(const std::string &peptide, const std::string &enz)
static void store(const std::string &pin_file, const PeptideIdentificationList &peptide_ids, const StringList &feature_set, const std::string &enz, int min_charge, int max_charge)
Writes the PSMs of peptide_ids as a Percolator input file.
std::map< std::pair< size_t, size_t >, std::set< std::string > > PinFeatureMetaValueMap
PIN meta values added to each hit, keyed by (peptide ID index, hit index).
Definition PercolatorInfile.h:38
static std::string getScanIdentifier(const PeptideIdentification &pid, size_t index)
static TextFile preparePin_(const PeptideIdentificationList &peptide_ids, const StringList &feature_set, const std::string &enz, int min_charge, int max_charge)
static bool isEnz_(const char &n, const char &c, const std::string &enz)
static Size buildFeatureMatrix(const PeptideIdentificationList &peptide_ids, const StringList &features, const std::string &enz, int min_charge, int max_charge, RescoreInput &input, std::vector< std::pair< size_t, size_t > > &rows)
The feature matrix of in-process rescoring: the PIN columns of the PSMs as Percolator reads them from...
static std::set< std::pair< size_t, size_t > > stampPinFeaturesOnHits(PeptideIdentificationList &peptide_ids, const std::string &enz, int min_charge, int max_charge)
Compute and stamp PIN-equivalent meta values on every PeptideHit.
static StringList getPinColumnNames(int min_charge, int max_charge)
The names of all PIN columns (meta values) that stampPinFeaturesOnHits sets on a hit.
static void refreshPinMetaValues(PeptideIdentificationList &peptide_ids, const std::string &enz, int min_charge, int max_charge)
Sets the PIN columns that the hits already carry as meta values to their PIN values,...
static void warnWithoutScanNumber_(const std::vector< std::string > &without_scan, const std::vector< char > &stamped)
static std::string getFileIdentifier(const PeptideIdentification &pid)
The spectrum file of a PSM: its 'file_origin' (empty if not set), followed by '|' and its 'id_merge_i...
PinColumn_
Fixed PIN columns as computed by pinHitColumns_ (the charge{N} columns follow from PIN_CHARGE on)
Definition PercolatorInfile.h:281
@ PIN_ABSDM
Definition PercolatorInfile.h:283
@ PIN_CALC_MASS
Definition PercolatorInfile.h:282
static StringList getStandardFeatureSet(int min_charge, int max_charge)
Returns the standard Percolator feature columns every .pin file should declare.
static PeptideIdentificationList load(const std::string &pin_file, bool higher_score_better, const std::string &score_name, const StringList &extra_scores, StringList &filenames, std::string decoy_prefix="", double threshold=0.01, bool SageAnnotation=false)
Loads peptide identifications from a Percolator input file.
static std::set< std::pair< size_t, size_t > > stampPinFeaturesOnHits(PeptideIdentificationList &peptide_ids, const std::string &enz, int min_charge, int max_charge, PinFeatureMetaValueMap &added_meta_values)
Compute and stamp PIN-equivalent meta values, recording newly added keys.
PinLookup_
Meta values of a hit that pinHitColumns_ reads.
Definition PercolatorInfile.h:288
@ LOOKUP_CALC_MASS
Definition PercolatorInfile.h:288
int Int
Signed integer type.
Definition Types.h:72
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
std::vector< std::string > StringList
Vector of String.
Definition TypeAliases.h:39
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19