TheoreticalSpectrumGeneratorXLMS#
- class pyopenms.TheoreticalSpectrumGeneratorXLMS#
Bases:
DefaultParamHandlerGenerates theoretical spectra for cross-linked peptides
- __init__() None#
- __init__(arg: pyopenms.TheoreticalSpectrumGeneratorXLMS, /) None
Methods
__init__()Returns the default parameters
getLinearIonSpectrum(spectrum, peptide, ...)Generates fragment ions not containing the cross-linker for one peptide
getName()Returns the name
Returns the parameters
getXLinkIonSpectrum(spectrum, peptide, ...)Overloaded function.
setName(name)Sets the name
setParameters(param)Sets the parameters
- getDefaults() pyopenms.Param#
Returns the default parameters
- getLinearIonSpectrum(spectrum: pyopenms.MSSpectrum, peptide: pyopenms.AASequence, link_pos: int, frag_alpha: bool, charge: int = 1, link_pos_2: int = 0) None#
Generates fragment ions not containing the cross-linker for one peptide
B-ions are generated from the beginning of the peptide up to the first linked position, y-ions are generated from the second linked position up the end of the peptide. If link_pos_2 is 0, a mono-link or cross-link is assumed and the second position is the same as the first position. For a loop-link two different positions can be set and link_pos_2 must be larger than link_pos The generated ion types and other additional settings are determined by the tool parameters
- Parameters:
spectrum – The spectrum to which the new peaks are added (in place). Does not have to be empty, the generated peaks will be pushed onto it
peptide – The peptide to fragment
link_pos – The position of the cross-linker on the given peptide
frag_alpha – True, if the fragmented peptide is the Alpha peptide. Used for ion-name annotation
charge – The maximal charge of the ions
link_pos_2 – A second position for the linker, in case it is a loop link
- getName() str#
Returns the name
- getParameters() pyopenms.Param#
Returns the parameters
- getSubsections() list[str]#
- getXLinkIonSpectrum(spectrum: pyopenms.MSSpectrum, peptide: pyopenms.AASequence, link_pos: int, precursor_mass: float, frag_alpha: bool, mincharge: int, maxcharge: int, link_pos_2: int = 0) None#
- getXLinkIonSpectrum(spectrum: pyopenms.MSSpectrum, crosslink: pyopenms.ProteinProteinCrossLink, frag_alpha: bool, mincharge: int, maxcharge: int) None
Overloaded function.
getXLinkIonSpectrum(spectrum: pyopenms.MSSpectrum, peptide: pyopenms.AASequence, link_pos: int, precursor_mass: float, frag_alpha: bool, mincharge: int, maxcharge: int, link_pos_2: int = 0) -> None
Generates fragment ions containing the cross-linker for one peptide
B-ions are generated from the first linked position up to the end of the peptide, y-ions are generated from the beginning of the peptide up to the second linked position. If link_pos_2 is 0, a mono-link or cross-link is assumed and the second position is the same as the first position. For a loop-link two different positions can be set and link_pos_2 must be larger than link_pos. Since in the case of a cross-link a whole second peptide is attached to the other side of the cross-link, a precursor mass for the two peptides and the linker is needed. In the case of a loop link the precursor mass is the mass of the only peptide and the linker. The generated ion types and other additional settings are determined by the tool parameters
- Parameters:
spectrum – The spectrum to which the new peaks are added (in place). Does not have to be empty, the generated peaks will be pushed onto it
peptide – The peptide to fragment
link_pos – The position of the cross-linker on the given peptide
precursor_mass – The mass of the whole cross-link candidate or the precursor mass of the experimental MS2 spectrum
frag_alpha – True, if the fragmented peptide is the Alpha peptide. Used for ion-name annotation
mincharge – The minimal charge of the ions
maxcharge – The maximal charge of the ions, it should be the precursor charge and is used to generate precursor ion peaks
link_pos_2 – A second position for the linker, in case it is a loop link
getXLinkIonSpectrum(spectrum: pyopenms.MSSpectrum, crosslink: pyopenms.ProteinProteinCrossLink, frag_alpha: bool, mincharge: int, maxcharge: int) -> None
Generates fragment ions containing the cross-linker for a pair of peptides
B-ions are generated from the first linked position up to the end of the peptide, y-ions are generated from the beginning of the peptide up to the second linked position. This function generates neutral loss ions by considering both linked peptides. Only one of the peptides, decided by frag_alpha, is fragmented. This simplifies the function, but it has to be called twice to get all fragments of a peptide pair. This function is not suitable to generate fragments for mono-links or loop-links. The generated ion types and other additional settings are determined by the tool parameters. No peaks are generated for a cross-link without an alpha peptide (e.g. a default-constructed one); use cross-links from candidate generation, e.g. OPXLHelper.buildCandidates
- Parameters:
spectrum – The spectrum to which the new peaks are added (in place). Does not have to be empty, the generated peaks will be pushed onto it
crosslink – ProteinProteinCrossLink to be fragmented
frag_alpha – True, if the fragmented peptide is the Alpha peptide
mincharge – The minimal charge of the ions
maxcharge – The maximal charge of the ions, it should be the precursor charge and is used to generate precursor ion peaks
- setName(name: str) None#
Sets the name
- setParameters(param: pyopenms.Param) None#
Sets the parameters