![]() |
OpenMS
|
Fragment-index-based peptide database search algorithm (experimental). More...
#include <OpenMS/ANALYSIS/ID/PeptideSearchEngineFIAlgorithm.h>
Classes | |
struct | AnnotatedHit_ |
Slimmer structure as storing all scored candidates in PeptideHit objects takes too much space. More... | |
Public Types | |
enum class | ExitCodes { EXECUTION_OK , INPUT_FILE_EMPTY , UNEXPECTED_RESULT , UNKNOWN_ERROR , ILLEGAL_PARAMETERS } |
Exit codes. More... | |
![]() | |
enum | LogType { CMD , GUI , NONE } |
Possible log types. More... | |
Public Member Functions | |
PeptideSearchEngineFIAlgorithm () | |
ExitCodes | search (const String &in_mzML, const String &in_db, std::vector< ProteinIdentification > &prot_ids, PeptideIdentificationList &pep_ids) const |
Search spectra in an mzML file against a protein database using an FI-backed workflow. More... | |
![]() | |
DefaultParamHandler (const String &name) | |
Constructor with name that is displayed in error messages. More... | |
DefaultParamHandler (const DefaultParamHandler &rhs) | |
Copy constructor. More... | |
virtual | ~DefaultParamHandler () |
Destructor. More... | |
DefaultParamHandler & | operator= (const DefaultParamHandler &rhs) |
Assignment operator. More... | |
virtual bool | operator== (const DefaultParamHandler &rhs) const |
Equality operator. More... | |
void | setParameters (const Param ¶m) |
Sets the parameters. More... | |
const Param & | getParameters () const |
Non-mutable access to the parameters. More... | |
const Param & | getDefaults () const |
Non-mutable access to the default parameters. More... | |
const String & | getName () const |
Non-mutable access to the name. More... | |
void | setName (const String &name) |
Mutable access to the name. More... | |
const std::vector< String > & | getSubsections () const |
Non-mutable access to the registered subsections. More... | |
![]() | |
ProgressLogger () | |
Constructor. More... | |
virtual | ~ProgressLogger () |
Destructor. More... | |
ProgressLogger (const ProgressLogger &other) | |
Copy constructor. More... | |
ProgressLogger & | operator= (const ProgressLogger &other) |
Assignment Operator. More... | |
void | setLogType (LogType type) const |
Sets the progress log that should be used. The default type is NONE! More... | |
LogType | getLogType () const |
Returns the type of progress log being used. More... | |
void | setLogger (ProgressLoggerImpl *logger) |
Sets the logger to be used for progress logging. More... | |
void | startProgress (SignedSize begin, SignedSize end, const String &label) const |
Initializes the progress display. More... | |
void | setProgress (SignedSize value) const |
Sets the current progress. More... | |
void | endProgress (UInt64 bytes_processed=0) const |
void | nextProgress () const |
increment progress by 1 (according to range begin-end) More... | |
Protected Member Functions | |
void | updateMembers_ () override |
This method is used to update extra member variables at the end of the setParameters() method. More... | |
void | postProcessHits_ (const PeakMap &exp, std::vector< std::vector< PeptideSearchEngineFIAlgorithm::AnnotatedHit_ > > &annotated_hits, std::vector< ProteinIdentification > &protein_ids, PeptideIdentificationList &peptide_ids, Size top_hits, const StringList &modifications_fixed, const StringList &modifications_variable, Int peptide_missed_cleavages, double precursor_mass_tolerance, double fragment_mass_tolerance, const String &precursor_mass_tolerance_unit_ppm, const String &fragment_mass_tolerance_unit_ppm, const Int precursor_min_charge, const Int precursor_max_charge, const String &enzyme, const String &database_name) const |
Filter and annotate search results. More... | |
bool | isOpenSearchMode_ () const |
Helper function to determine if open search should be used based on tolerance. More... | |
![]() | |
void | defaultsToParam_ () |
Updates the parameters after the defaults have been set in the constructor. More... | |
Static Protected Member Functions | |
static void | preprocessSpectra_ (PeakMap &exp, double fragment_mass_tolerance, bool fragment_mass_tolerance_unit_ppm) |
filter, deisotope, decharge spectra More... | |
Additional Inherited Members | |
![]() | |
static void | writeParametersToMetaValues (const Param &write_this, MetaInfoInterface &write_here, const String &key_prefix="") |
Writes all parameters to meta values. More... | |
![]() | |
static int | recursion_depth_ |
Fragment-index-based peptide database search algorithm (experimental).
Provides a self-contained search engine that matches MS/MS spectra against a protein database using an FI (Fragment Index). Typical usage:
Notes:
Fragment-index-based peptide database search algorithm (experimental).
Provides a self-contained search engine that matches MS/MS spectra against a protein database using an FI (Fragment Index). Typical usage:
Notes:
|
strong |
|
inlineprotected |
Helper function to determine if open search should be used based on tolerance.
|
protected |
Filter and annotate search results.
Trims per-spectrum candidate hits to the top N and converts them into PeptideIdentification objects, adding requested PSM annotations and populating protein-level search metadata.
exp | Input MS experiment providing spectra/metadata for annotation. |
annotated_hits | Per-spectrum candidate hits (trimmed to top_hits in-place). |
protein_ids | Output container for protein-level identification and search metadata. |
peptide_ids | Output container for spectrum-level peptide identifications (PSMs). |
top_hits | Number of top-scoring hits to retain per spectrum (report_top_hits_). |
modifications_fixed | Fixed modifications (by name) used during the search. |
modifications_variable | Variable modifications (by name) used during the search. |
peptide_missed_cleavages | Allowed missed cleavages in digestion. |
precursor_mass_tolerance | Precursor mass tolerance value. |
fragment_mass_tolerance | Fragment mass tolerance value. |
precursor_mass_tolerance_unit_ppm | Precursor tolerance unit ("true"->ppm, "false"->Da). |
fragment_mass_tolerance_unit_ppm | Fragment tolerance unit ("true"->ppm, "false"->Da). |
precursor_min_charge | Minimum precursor charge considered. |
precursor_max_charge | Maximum precursor charge considered. |
enzyme | Digestion enzyme name. |
database_name | Database file name used for the search (stored in protein_ids). |
|
staticprotected |
filter, deisotope, decharge spectra
ExitCodes search | ( | const String & | in_mzML, |
const String & | in_db, | ||
std::vector< ProteinIdentification > & | prot_ids, | ||
PeptideIdentificationList & | pep_ids | ||
) | const |
Search spectra in an mzML file against a protein database using an FI-backed workflow.
Populates protein and peptide identifications, including search meta data, PSM hits, and search engine annotations. Parameters are taken from this instance (DefaultParamHandler).
in_mzML | Input path to the mzML file containing MS/MS spectra to search. |
in_db | Input path to the protein sequence database in FASTA format. |
prot_ids | Output container receiving search meta data and protein-level information. |
pep_ids | Output container receiving spectrum-level peptide identifications (PSMs). |
Side effects:
Errors:
|
overrideprotectedvirtual |
This method is used to update extra member variables at the end of the setParameters() method.
Also call it at the end of the derived classes' copy constructor and assignment operator.
The default implementation is empty.
Reimplemented from DefaultParamHandler.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |