TheoreticalSpectrumGenerator#
- class pyopenms.TheoreticalSpectrumGenerator#
Bases:
DefaultParamHandlerGenerates theoretical spectra for peptides with various options
- __init__() None#
- __init__(arg: pyopenms.TheoreticalSpectrumGenerator, /) None
Methods
__init__()Returns the default parameters
getName()Returns the name
Returns the parameters
getPrefixAndSuffixIonsMZ(peptide, charge)Returns the prefix and suffix ion m/z values for a peptide as a numpy float array
getSpectrum(spec, peptide, min_charge, ...)Generates a spectrum for a peptide sequence, with the ion types that are set in the tool parameters
setName(name)Sets the name
setParameters(param)Sets the parameters
- getDefaults() pyopenms.Param#
Returns the default parameters
- getName() str#
Returns the name
- getParameters() pyopenms.Param#
Returns the parameters
- getPrefixAndSuffixIonsMZ(peptide: pyopenms.AASequence, charge: int) numpy.ndarray[dtype=float32, shape=(*)]#
Returns the prefix and suffix ion m/z values for a peptide as a numpy float array
- getSpectrum(spec: pyopenms.MSSpectrum, peptide: pyopenms.AASequence, min_charge: int, max_charge: int) None#
Generates a spectrum for a peptide sequence, with the ion types that are set in the tool parameters
- getSubsections() list[str]#
- setName(name: str) None#
Sets the name
- setParameters(param: pyopenms.Param) None#
Sets the parameters