PeptideHit#

class pyopenms.PeptideHit#

Bases: object

Cython implementation of _PeptideHit

Original C++ documentation is available here

– Inherits from [‘MetaInfoInterface’]

__init__()#

Overload:

__init__(self) None

Overload:

__init__(self, score: float, rank: int, charge: int, sequence: AASequence) None

Overload:

__init__(self, in_0: PeptideHit) None

Methods

__init__

Overload:

addAnalysisResults(self, aresult)

Add information on (search engine) sub scores associated with this PSM

addPeptideEvidence(self, in_0)

Adds information on a peptide that is (potentially) identified by this PSM

clearMetaInfo(self)

Removes all meta values

extractProteinAccessionsSet(self)

Extracts the set of non-empty protein accessions from peptide evidences

getAnalysisResults(self)

Returns information on (search engine) sub scores associated with this PSM

getCharge(self)

Returns the charge of the peptide

getKeys(self, keys)

Fills the given vector with a list of all keys for which a value is set

getMetaValue(self, in_0)

Returns the value corresponding to a string, or

getPeakAnnotations(self)

Returns the fragment annotations

getPeptideEvidences(self)

Returns information on peptides (potentially) identified by this PSM

getRank(self)

Returns the PSM rank

getScore(self)

Returns the PSM score

getSequence(self)

Returns the peptide sequence without trailing or following spaces

isMetaEmpty(self)

Returns if the MetaInfo is empty

metaRegistry(self)

Returns a reference to the MetaInfoRegistry

metaValueExists(self, in_0)

Returns whether an entry with the given name exists

removeMetaValue(self, in_0)

Removes the DataValue corresponding to name if it exists

setAnalysisResults(self, aresult)

Sets information on (search engine) sub scores associated with this PSM

setCharge(self, in_0)

Sets the charge of the peptide

setMetaValue(self, in_0, in_1)

Sets the DataValue corresponding to a name

setPeakAnnotations(self, in_0)

Sets the fragment annotations

setPeptideEvidences(self, in_0)

Sets information on peptides (potentially) identified by this PSM

setRank(self, in_0)

Sets the PSM rank

setScore(self, in_0)

Sets the PSM score

setSequence(self, in_0)

Sets the peptide sequence

addAnalysisResults(self, aresult: PeptideHit_AnalysisResult) None#

Add information on (search engine) sub scores associated with this PSM

addPeptideEvidence(self, in_0: PeptideEvidence) None#

Adds information on a peptide that is (potentially) identified by this PSM

clearMetaInfo(self) None#

Removes all meta values

extractProteinAccessionsSet(self) Set[bytes]#

Extracts the set of non-empty protein accessions from peptide evidences

getAnalysisResults(self) List[PeptideHit_AnalysisResult]#

Returns information on (search engine) sub scores associated with this PSM

getCharge(self) int#

Returns the charge of the peptide

getKeys(self, keys: List[bytes]) None#

Fills the given vector with a list of all keys for which a value is set

getMetaValue(self, in_0: bytes | str | String) int | float | bytes | str | List[int] | List[float] | List[bytes]#

Returns the value corresponding to a string, or

getPeakAnnotations(self) List[PeptideHit_PeakAnnotation]#

Returns the fragment annotations

getPeptideEvidences(self) List[PeptideEvidence]#

Returns information on peptides (potentially) identified by this PSM

getRank(self) int#

Returns the PSM rank

getScore(self) float#

Returns the PSM score

getSequence(self) AASequence#

Returns the peptide sequence without trailing or following spaces

isMetaEmpty(self) bool#

Returns if the MetaInfo is empty

metaRegistry(self) MetaInfoRegistry#

Returns a reference to the MetaInfoRegistry

metaValueExists(self, in_0: bytes | str | String) bool#

Returns whether an entry with the given name exists

removeMetaValue(self, in_0: bytes | str | String) None#

Removes the DataValue corresponding to name if it exists

setAnalysisResults(self, aresult: List[PeptideHit_AnalysisResult]) None#

Sets information on (search engine) sub scores associated with this PSM

setCharge(self, in_0: int) None#

Sets the charge of the peptide

setMetaValue(self, in_0: bytes | str | String, in_1: int | float | bytes | str | List[int] | List[float] | List[bytes]) None#

Sets the DataValue corresponding to a name

setPeakAnnotations(self, in_0: List[PeptideHit_PeakAnnotation]) None#

Sets the fragment annotations

setPeptideEvidences(self, in_0: List[PeptideEvidence]) None#

Sets information on peptides (potentially) identified by this PSM

setRank(self, in_0: int) None#

Sets the PSM rank

setScore(self, in_0: float) None#

Sets the PSM score

setSequence(self, in_0: AASequence) None#

Sets the peptide sequence