PeptideEvidence#

class pyopenms.PeptideEvidence#

Bases: object

Cython implementation of _PeptideEvidence

Original C++ documentation is available here

__init__()#

Overload:

__init__(self) None

Overload:

__init__(self, in_0: PeptideEvidence) None

Methods

__init__

Overload:

getAAAfter(self)

Returns the amino acid single letter code after the sequence (subsequent amino acid in the protein).

getAABefore(self)

Returns the amino acid single letter code before the sequence (preceding amino acid in the protein).

getEnd(self)

Returns the position of the last AA of the peptide in protein coordinates (starting at 0 for the N-terminus).

getProteinAccession(self)

Returns the protein accession the peptide matches to.

getStart(self)

Returns the position in the protein (starting at 0 for the N-terminus).

hasValidLimits(self)

Start and end numbers in evidence represent actual numeric indices

setAAAfter(self, rhs)

Sets the amino acid single letter code after the sequence (subsequent amino acid in the protein).

setAABefore(self, rhs)

Sets the amino acid single letter code before the sequence (preceding amino acid in the protein).

setEnd(self, end)

Sets the position of the last AA of the peptide in protein coordinates (starting at 0 for the N-terminus).

setProteinAccession(self, s)

Sets the protein accession the peptide matches to.

setStart(self, start)

Sets the position of the last AA of the peptide in protein coordinates (starting at 0 for the N-terminus).

getAAAfter(self) bytes#

Returns the amino acid single letter code after the sequence (subsequent amino acid in the protein). If not available, UNKNOWN_AA is returned. If C-terminal, C_TERMINAL_AA is returned

getAABefore(self) bytes#

Returns the amino acid single letter code before the sequence (preceding amino acid in the protein). If not available, UNKNOWN_AA is returned. If N-terminal, N_TERMINAL_AA is returned

getEnd(self) int#

Returns the position of the last AA of the peptide in protein coordinates (starting at 0 for the N-terminus). If not available UNKNOWN_POSITION constant is returned

getProteinAccession(self) bytes | str | String#

Returns the protein accession the peptide matches to. If not available the empty string is returned

getStart(self) int#

Returns the position in the protein (starting at 0 for the N-terminus). If not available UNKNOWN_POSITION constant is returned

hasValidLimits(self) bool#

Start and end numbers in evidence represent actual numeric indices

setAAAfter(self, rhs: bytes) None#

Sets the amino acid single letter code after the sequence (subsequent amino acid in the protein). If not available, set to UNKNOWN_AA. If C-terminal set to C_TERMINAL_AA

setAABefore(self, rhs: bytes) None#

Sets the amino acid single letter code before the sequence (preceding amino acid in the protein). If not available, set to UNKNOWN_AA. If N-terminal set to N_TERMINAL_AA

setEnd(self, end: int) None#

Sets the position of the last AA of the peptide in protein coordinates (starting at 0 for the N-terminus). If not available, set UNKNOWN_POSITION. C-terminal positions must be marked with C_TERMINAL_AA

setProteinAccession(self, s: bytes | str | String) None#

Sets the protein accession the peptide matches to. If not available set to empty string

setStart(self, start: int) None#

Sets the position of the last AA of the peptide in protein coordinates (starting at 0 for the N-terminus). If not available, set to UNKNOWN_POSITION. N-terminal positions must be marked with N_TERMINAL_AA