PercolatorFeatureSetHelper#
- class pyopenms.PercolatorFeatureSetHelper#
Bases:
objectPercolator feature set and integration helper
This class contains functions to handle (compute, aggregate, integrate) Percolator features. This includes the calculation or extraction of Percolator features depending on the search engine(s) for later use with PercolatorAdapter. It also includes handling the reintegration of the percolator result into the set of Identifications
- __init__() None#
- __init__(arg: pyopenms.PercolatorFeatureSetHelper, /) None
Methods
__init__()addCOMETFeatures(peptide_ids, feature_set)Creates and adds Comet specific Percolator features and registers them in feature_set
addMASCOTFeatures(peptide_ids, feature_set)Creates and adds Mascot specific Percolator features and registers them in feature_set
addMSGFFeatures(peptide_ids, feature_set)Creates and adds MSGF+ specific Percolator features and registers them in feature_set.
addXTANDEMFeatures(peptide_ids, feature_set)Creates and adds X!Tandem specific Percolator features and registers them in feature_set
checkExtraFeatures(psms, extra_features)Checks the requested extra Percolator features and removes those that are not available on all given PSMs
mergeMULTISEProteinIds(all_protein_ids, ...)Merges a ProteinIdentification run into another: takes over the search parameters of the first run, sets the search engine to "multiple" once runs from differing search engines are combined, and unions the ProteinHits by accession
- static addCOMETFeatures(peptide_ids: pyopenms.PeptideIdentificationList, feature_set: list[str]) list[str]#
Creates and adds Comet specific Percolator features and registers them in feature_set
- Parameters:
peptide_ids – PeptideIdentification vector to create Percolator features in
feature_set – Register of added features
- Returns:
Updated feature_set
In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as
feature_setis also updated in place with the returned contents.
- static addMASCOTFeatures(peptide_ids: pyopenms.PeptideIdentificationList, feature_set: list[str]) list[str]#
Creates and adds Mascot specific Percolator features and registers them in feature_set
- Parameters:
peptide_ids – PeptideIdentification vector to create Percolator features in
feature_set – Register of added features
- Returns:
Updated feature_set
In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as
feature_setis also updated in place with the returned contents.
- static addMSGFFeatures(peptide_ids: pyopenms.PeptideIdentificationList, feature_set: list[str]) list[str]#
Creates and adds MSGF+ specific Percolator features and registers them in feature_set. MSGF+ should be run with the addFeatures flag enabled
- Parameters:
peptide_ids – PeptideIdentification vector to create Percolator features in
feature_set – Register of added features
- Returns:
Updated feature_set
In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as
feature_setis also updated in place with the returned contents.
- static addXTANDEMFeatures(peptide_ids: pyopenms.PeptideIdentificationList, feature_set: list[str]) list[str]#
Creates and adds X!Tandem specific Percolator features and registers them in feature_set
- Parameters:
peptide_ids – PeptideIdentification vector to create Percolator features in
feature_set – Register of added features
- Returns:
Updated feature_set
In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as
feature_setis also updated in place with the returned contents.
- static checkExtraFeatures(psms: collections.abc.Sequence[pyopenms.PeptideHit], extra_features: list[str]) list[str]#
Checks the requested extra Percolator features and removes those that are not available on all given PSMs
- Parameters:
psms – The vector of PeptideHit to be checked
extra_features – The list of requested extra features
- Returns:
Updated extra_features with unavailable features removed
In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as
extra_featuresis also updated in place with the returned contents.
- static mergeMULTISEProteinIds(all_protein_ids: collections.abc.Sequence[pyopenms.ProteinIdentification], new_protein_ids: collections.abc.Sequence[pyopenms.ProteinIdentification]) tuple#
Merges a ProteinIdentification run into another: takes over the search parameters of the first run, sets the search engine to “multiple” once runs from differing search engines are combined, and unions the ProteinHits by accession
- Parameters:
all_protein_ids – ProteinIdentification vector to be merged into
new_protein_ids – ProteinIdentification vector to merge
- Returns:
Tuple of (updated all_protein_ids, updated new_protein_ids)
In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as
all_protein_ids,new_protein_idsis also updated in place with the returned contents.