ProteinHit

class pyopenms.ProteinHit

Bases: object

Cython implementation of _ProteinHit

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

– Inherits from [‘MetaInfoInterface’]

__init__()
  • Cython signature: void ProteinHit()

  • Cython signature: void ProteinHit(double score, unsigned int rank, String accession, String sequence)

  • Cython signature: void ProteinHit(ProteinHit &)

Methods

__init__

  • Cython signature: void ProteinHit()

clearMetaInfo

Cython signature: void clearMetaInfo() Removes all meta values

getAccession

Cython signature: String getAccession() Returns the accession of the protein

getCoverage

Cython signature: double getCoverage() Returns the coverage (in percent) of the protein hit based upon matched peptides

getDescription

Cython signature: String getDescription() Returns the description of the protein

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

getMetaValue

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

getRank

Cython signature: unsigned int getRank() Returns the rank of the protein hit

getScore

Cython signature: float getScore() Returns the score of the protein hit

getSequence

Cython signature: String getSequence() Returns the protein sequence

isMetaEmpty

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

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

setAccession

Cython signature: void setAccession(String) Sets the accession of the protein

setCoverage

Cython signature: void setCoverage(double) Sets the coverage (in percent) of the protein hit based upon matched peptides

setDescription

Cython signature: void setDescription(String description) Sets the description of the protein

setMetaValue

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

setRank

Cython signature: void setRank(unsigned int) Sets the rank

setScore

Cython signature: void setScore(float) Sets the score of the protein hit

setSequence

Cython signature: void setSequence(String) Sets the protein sequence

clearMetaInfo()

Cython signature: void clearMetaInfo() Removes all meta values

getAccession()

Cython signature: String getAccession() Returns the accession of the protein

getCoverage()

Cython signature: double getCoverage() Returns the coverage (in percent) of the protein hit based upon matched peptides

getDescription()

Cython signature: String getDescription() Returns the description of the protein

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

getMetaValue()

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

getRank()

Cython signature: unsigned int getRank() Returns the rank of the protein hit

getScore()

Cython signature: float getScore() Returns the score of the protein hit

getSequence()

Cython signature: String getSequence() Returns the protein sequence

isMetaEmpty()

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

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

setAccession()

Cython signature: void setAccession(String) Sets the accession of the protein

setCoverage()

Cython signature: void setCoverage(double) Sets the coverage (in percent) of the protein hit based upon matched peptides

setDescription()

Cython signature: void setDescription(String description) Sets the description of the protein

setMetaValue()

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

setRank()

Cython signature: void setRank(unsigned int) Sets the rank

setScore()

Cython signature: void setScore(float) Sets the score of the protein hit

setSequence()

Cython signature: void setSequence(String) Sets the protein sequence