ChargePair#
- class pyopenms.ChargePair#
Bases:
object
Cython implementation of _ChargePair
Original C++ documentation is available here
- __init__()#
Overload:
- __init__(self) None
Overload:
- __init__(self, in_0: ChargePair) None
Overload:
- __init__(self, index0: int, index1: int, charge0: int, charge1: int, compomer: Compomer, mass_diff: float, active: bool) None
Methods
Overload:
getCharge
(self, pairID)Returns the charge (for element 0 or 1)
getCompomer
(self)Returns the Id of the compomer that explains the mass difference
getEdgeScore
(self)Returns the ILP edge score
getElementIndex
(self, pairID)Returns the element index (for element 0 or 1)
getMassDiff
(self)Returns the mass difference
isActive
(self)Is this pair realized?
setActive
(self, active)setCharge
(self, pairID, e)Sets the charge (for element 0 or 1)
setCompomer
(self, compomer)Sets the compomer id
setEdgeScore
(self, score)Sets the ILP edge score
setElementIndex
(self, pairID, e)Sets the element index (for element 0 or 1)
setMassDiff
(self, mass_diff)Sets the mass difference
- getCharge(self, pairID: int) int #
Returns the charge (for element 0 or 1)
- getEdgeScore(self) float #
Returns the ILP edge score
- getElementIndex(self, pairID: int) int #
Returns the element index (for element 0 or 1)
- getMassDiff(self) float #
Returns the mass difference
- isActive(self) bool #
Is this pair realized?
- setActive(self, active: bool) None #
- setCharge(self, pairID: int, e: int) None #
Sets the charge (for element 0 or 1)
- setEdgeScore(self, score: float) None #
Sets the ILP edge score
- setElementIndex(self, pairID: int, e: int) None #
Sets the element index (for element 0 or 1)
- setMassDiff(self, mass_diff: float) None #
Sets the mass difference