SpectrumAnnotator#
- class pyopenms.SpectrumAnnotator#
Bases:
DefaultParamHandlerAnnotates spectra from identifications and theoretical spectra or identifications from spectra and theoretical spectra matching with various options
- __init__() None#
- __init__(arg: pyopenms.SpectrumAnnotator, /) None
Methods
__init__()addIonMatchStatistics(pi, spec, tg, sa)Adds ion match statistics to pi PeptideIdentifcation
addPeakAnnotationsToPeptideHit(ph, spec, tg, sa)Adds peak annotations to the ph PeptideHit
annotateMatches(spec, ph, tg, sa)Adds ion match annotation to the spec input spectrum
Returns the default parameters
getName()Returns the name
Returns the parameters
setName(name)Sets the name
setParameters(param)Sets the parameters
- addIonMatchStatistics(pi: pyopenms.PeptideIdentification, spec: pyopenms.MSSpectrum, tg: pyopenms.TheoreticalSpectrumGenerator, sa: pyopenms.SpectrumAlignment) None#
Adds ion match statistics to pi PeptideIdentifcation
- Parameters:
pi – A spectrum identifications to be annotated, looking up matches from a spectrum and the theoretical spectrum inferred from the identifications sequence
spec – A PeakSpectrum containing the peaks from which the pi identifications are made
tg – A TheoreticalSpectrumGenerator to infer the theoretical spectrum. Its own parameters define which ion types are referred
sa – A SpectrumAlignment to match the theoretical spectrum with the measured. Its own parameters define the match tolerance
- addPeakAnnotationsToPeptideHit(ph: pyopenms.PeptideHit, spec: pyopenms.MSSpectrum, tg: pyopenms.TheoreticalSpectrumGenerator, sa: pyopenms.SpectrumAlignment, include_unmatched_peaks: bool = False) None#
Adds peak annotations to the ph PeptideHit
- Parameters:
ph – A PeptideHit whose PeakAnnotations vector will be filled with the ion matches
spec – A PeakSpectrum containing the peaks from which the ph identifications are made
tg – A TheoreticalSpectrumGenerator to infer the theoretical spectrum. Its own parameters define which ion types are referred
sa – A SpectrumAlignment to match the theoretical spectrum with the measured. Its own parameters define the match tolerance
include_unmatched_peaks – If true, all spectrum peaks will be included in the PeakAnnotations vector. Unmatched peaks will have empty annotation strings. If false, only matched peaks are included.
- annotateMatches(spec: pyopenms.MSSpectrum, ph: pyopenms.PeptideHit, tg: pyopenms.TheoreticalSpectrumGenerator, sa: pyopenms.SpectrumAlignment) None#
Adds ion match annotation to the spec input spectrum
- Parameters:
spec – A PeakSpectrum containing the peaks from which the pi identifications are made
ph – A spectrum identifications to be used for the annotation, looking up matches from a spectrum and the theoretical spectrum inferred from the identifications sequence
tg – A TheoreticalSpectrumGenerator to infer the theoretical spectrum. Its own parameters define which ion types are referred
sa – A SpectrumAlignment to match the theoretical spectrum with the measured. Its own parameters define the match tolerance
- getDefaults() pyopenms.Param#
Returns the default parameters
- getName() str#
Returns the name
- getParameters() pyopenms.Param#
Returns the parameters
- getSubsections() list[str]#
- setName(name: str) None#
Sets the name
- setParameters(param: pyopenms.Param) None#
Sets the parameters