ChargePair

class pyopenms.ChargePair

Bases: object

Cython implementation of _ChargePair

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

__init__()
  • Cython signature: void ChargePair()

  • Cython signature: void ChargePair(ChargePair &)

  • Cython signature: void ChargePair(size_t index0, size_t index1, int charge0, int charge1, Compomer compomer, double mass_diff, bool active)

Methods

__init__

  • Cython signature: void ChargePair()

getCharge

Cython signature: int getCharge(unsigned int pairID) Returns the charge (for element 0 or 1)

getCompomer

Cython signature: Compomer getCompomer() Returns the Id of the compomer that explains the mass difference

getEdgeScore

Cython signature: double getEdgeScore() Returns the ILP edge score

getElementIndex

Cython signature: size_t getElementIndex(unsigned int pairID) Returns the element index (for element 0 or 1)

getMassDiff

Cython signature: double getMassDiff() Returns the mass difference

isActive

Cython signature: bool isActive() Is this pair realized?

setActive

Cython signature: void setActive(bool active)

setCharge

Cython signature: void setCharge(unsigned int pairID, int e) Sets the charge (for element 0 or 1)

setCompomer

Cython signature: void setCompomer(Compomer & compomer) Sets the compomer id

setEdgeScore

Cython signature: void setEdgeScore(double score) Sets the ILP edge score

setElementIndex

Cython signature: void setElementIndex(unsigned int pairID, size_t e) Sets the element index (for element 0 or 1)

setMassDiff

Cython signature: void setMassDiff(double mass_diff) Sets the mass difference

getCharge()

Cython signature: int getCharge(unsigned int pairID) Returns the charge (for element 0 or 1)

getCompomer()

Cython signature: Compomer getCompomer() Returns the Id of the compomer that explains the mass difference

getEdgeScore()

Cython signature: double getEdgeScore() Returns the ILP edge score

getElementIndex()

Cython signature: size_t getElementIndex(unsigned int pairID) Returns the element index (for element 0 or 1)

getMassDiff()

Cython signature: double getMassDiff() Returns the mass difference

isActive()

Cython signature: bool isActive() Is this pair realized?

setActive()

Cython signature: void setActive(bool active)

setCharge()

Cython signature: void setCharge(unsigned int pairID, int e) Sets the charge (for element 0 or 1)

setCompomer()

Cython signature: void setCompomer(Compomer & compomer) Sets the compomer id

setEdgeScore()

Cython signature: void setEdgeScore(double score) Sets the ILP edge score

setElementIndex()

Cython signature: void setElementIndex(unsigned int pairID, size_t e) Sets the element index (for element 0 or 1)

setMassDiff()

Cython signature: void setMassDiff(double mass_diff) Sets the mass difference