Peptide#

class pyopenms.Peptide#

Bases: object

Represents a peptide in a targeted experiment (e.g. used by ReactionMonitoringTransition and IncludeExcludeTarget)

__init__() → None#
__init__(arg: pyopenms.Peptide, /) → None

Methods

__init__()

addCVTerm(term)

Adds a CV term

clearMetaInfo()

Removes all meta values

consumeCVTerms(cv_term_map)

Merges the given map into the member map, no duplicate checking

empty()

getCVTerms()

Returns a copy of the CV terms, keyed by CV accession

getChargeState()

Returns the peptide or compound charge state

getKeys(keys)

Overloaded function.

getMetaValue(name)

Returns the value corresponding to a string, or DataValue::EMPTY if not found

getPeptideGroupLabel()

Get the peptide group label

getRetentionTime()

Gets compound or peptide retention time

getRetentionTimeType()

Get compound or peptide retentiontime type

getRetentionTimeUnit()

Get compound or peptide retentiontime unit (minute/seconds)

hasCVTerm(accession)

hasCharge()

Whether product has set charge state

hasRetentionTime()

Gets compound or peptide retention time

isMetaEmpty()

Returns if the MetaInfo is empty

metaRegistry()

Returns a reference to the MetaInfoRegistry

metaValueExists(name)

Returns whether an entry with the given name exists

removeMetaValue(name)

Removes the DataValue corresponding to name if it exists

replaceCVTerm(cv_term)

Replaces the specified CV term

replaceCVTerms(cv_term_map)

Replaces all CV terms with the given map

setCVTerms(terms)

Sets the CV terms from a vector

setChargeState(charge)

Sets the peptide or compound charge states

setMetaValue(name, value)

Sets the DataValue corresponding to a name

setPeptideGroupLabel(label)

Sets the peptide group label

Attributes

addCVTerm(term: pyopenms.CVTerm) → None#

Adds a CV term

clearMetaInfo() → None#

Removes all meta values

consumeCVTerms(cv_term_map: dict[str, collections.abc.Sequence[pyopenms.CVTerm]]) → None#

Merges the given map into the member map, no duplicate checking

empty() → bool#
property evidence: pyopenms.CVTermList#
getCVTerms() → dict[str, list[pyopenms.CVTerm]]#

Returns a copy of the CV terms, keyed by CV accession

getChargeState() → int#

Returns the peptide or compound charge state

getKeys(keys: list) → None#
getKeys() → list

Overloaded function.

  1. getKeys(keys: list) -> None

Fills the given list with all meta value keys

  1. getKeys() -> list

Returns all meta value keys as a list

getMetaValue(name: str) → None | int | float | str | bytes | list[str] | list[int] | list[float]#

Returns the value corresponding to a string, or DataValue::EMPTY if not found

getPeptideGroupLabel() → str#

Get the peptide group label

getRetentionTime() → float#

Gets compound or peptide retention time

getRetentionTimeType() → pyopenms.RetentionTime.RTType#

Get compound or peptide retentiontime type

getRetentionTimeUnit() → pyopenms.RetentionTime.RTUnit#

Get compound or peptide retentiontime unit (minute/seconds)

hasCVTerm(accession: str) → bool#
hasCharge() → bool#

Whether product has set charge state

hasRetentionTime() → bool#

Gets compound or peptide retention time

property id: str#
isMetaEmpty() → bool#

Returns if the MetaInfo is empty

static metaRegistry() → pyopenms.MetaInfoRegistry#

Returns a reference to the MetaInfoRegistry

metaValueExists(name: str) → bool#

Returns whether an entry with the given name exists

property mods: list[pyopenms.TargetedExperiment_Modification]#
property protein_refs: list[str]#
removeMetaValue(name: str) → None#

Removes the DataValue corresponding to name if it exists

replaceCVTerm(cv_term: pyopenms.CVTerm) → None#

Replaces the specified CV term

replaceCVTerms(cv_term_map: dict[str, collections.abc.Sequence[pyopenms.CVTerm]]) → None#

Replaces all CV terms with the given map

property rts: list[pyopenms.RetentionTime]#
property sequence: str#
setCVTerms(terms: collections.abc.Sequence[pyopenms.CVTerm]) → None#

Sets the CV terms from a vector

setChargeState(charge: int) → None#

Sets the peptide or compound charge states

setMetaValue(name: str, value: None | int | float | str | bytes | list[str] | list[int] | list[float]) → None#

Sets the DataValue corresponding to a name

setPeptideGroupLabel(label: str) → None#

Sets the peptide group label