RichPeak2D

class pyopenms.RichPeak2D

Bases: object

Cython implementation of _RichPeak2D

Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1RichPeak2D.html

– Inherits from [‘Peak2D’, ‘UniqueIdInterface’, ‘MetaInfoInterface’]

__init__()
  • Cython signature: void RichPeak2D() A 2-dimensional raw data point or peak with meta information

  • Cython signature: void RichPeak2D(RichPeak2D &)

Methods

__init__

  • Cython signature: void RichPeak2D()

clearMetaInfo

Cython signature: void clearMetaInfo() Removes all meta values

clearUniqueId

Cython signature: size_t clearUniqueId() Clear the unique id.

ensureUniqueId

Cython signature: size_t ensureUniqueId() Assigns a valid unique id, but only if the present one is invalid.

getIntensity

Cython signature: float getIntensity() Returns the data point intensity (height)

getKeys

Cython signature: void getKeys(libcpp_vector[String] & keys) Fills the given vector with a list of all keys for which a value is set

getMZ

Cython signature: double getMZ() Returns the m/z coordinate (index 1)

getMetaValue

Cython signature: DataValue getMetaValue(String) Returns the value corresponding to a string, or

getRT

Cython signature: double getRT() Returns the RT coordinate (index 0)

getUniqueId

Cython signature: size_t getUniqueId() Returns the unique id

hasInvalidUniqueId

Cython signature: size_t hasInvalidUniqueId() Returns whether the unique id is invalid.

hasValidUniqueId

Cython signature: size_t hasValidUniqueId() Returns whether the unique id is valid.

isMetaEmpty

Cython signature: bool isMetaEmpty() Returns if the MetaInfo is empty

isValid

Cython signature: bool isValid(uint64_t unique_id) Returns true if the unique_id is valid, false otherwise

metaRegistry

Cython signature: MetaInfoRegistry metaRegistry() Returns a reference to the MetaInfoRegistry

metaValueExists

Cython signature: bool metaValueExists(String) Returns whether an entry with the given name exists

removeMetaValue

Cython signature: void removeMetaValue(String) Removes the DataValue corresponding to name if it exists

setIntensity

Cython signature: void setIntensity(float) Returns the data point intensity (height)

setMZ

Cython signature: void setMZ(double) Returns the m/z coordinate (index 1)

setMetaValue

Cython signature: void setMetaValue(String, DataValue) Sets the DataValue corresponding to a name

setRT

Cython signature: void setRT(double) Returns the RT coordinate (index 0)

setUniqueId

Cython signature: void setUniqueId(uint64_t rhs) Assigns a new, valid unique id.

clearMetaInfo()

Cython signature: void clearMetaInfo() Removes all meta values

clearUniqueId()

Cython signature: size_t clearUniqueId() Clear the unique id. The new unique id will be invalid. Returns 1 if the unique id was changed, 0 otherwise

ensureUniqueId()

Cython signature: size_t ensureUniqueId() Assigns a valid unique id, but only if the present one is invalid. Returns 1 if the unique id was changed, 0 otherwise

getIntensity()

Cython signature: float getIntensity() Returns the data point intensity (height)

getKeys()

Cython signature: void getKeys(libcpp_vector[String] & keys) Fills the given vector with a list of all keys for which a value is set

getMZ()

Cython signature: double getMZ() Returns the m/z coordinate (index 1)

getMetaValue()

Cython signature: DataValue getMetaValue(String) Returns the value corresponding to a string, or

getRT()

Cython signature: double getRT() Returns the RT coordinate (index 0)

getUniqueId()

Cython signature: size_t getUniqueId() Returns the unique id

hasInvalidUniqueId()

Cython signature: size_t hasInvalidUniqueId() Returns whether the unique id is invalid. Returns 1 if the unique id is invalid, 0 otherwise

hasValidUniqueId()

Cython signature: size_t hasValidUniqueId() Returns whether the unique id is valid. Returns 1 if the unique id is valid, 0 otherwise

isMetaEmpty()

Cython signature: bool isMetaEmpty() Returns if the MetaInfo is empty

isValid()

Cython signature: bool isValid(uint64_t unique_id) Returns true if the unique_id is valid, false otherwise

metaRegistry()

Cython signature: MetaInfoRegistry metaRegistry() Returns a reference to the MetaInfoRegistry

metaValueExists()

Cython signature: bool metaValueExists(String) Returns whether an entry with the given name exists

removeMetaValue()

Cython signature: void removeMetaValue(String) Removes the DataValue corresponding to name if it exists

setIntensity()

Cython signature: void setIntensity(float) Returns the data point intensity (height)

setMZ()

Cython signature: void setMZ(double) Returns the m/z coordinate (index 1)

setMetaValue()

Cython signature: void setMetaValue(String, DataValue) Sets the DataValue corresponding to a name

setRT()

Cython signature: void setRT(double) Returns the RT coordinate (index 0)

setUniqueId()

Cython signature: void setUniqueId(uint64_t rhs) Assigns a new, valid unique id. Always returns 1