ChargePair#

class pyopenms.ChargePair#

Bases: object

Representation of a (putative) link between two Features with different charge

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

Methods

__init__()

getCharge(pairID)

Returns the charge (for element 0 or 1)

getCompomer()

Returns the compomer that explains the mass difference

getEdgeScore()

Returns the ILP edge score

getElementIndex(pairID)

Returns the element index (for element 0 or 1)

getMassDiff()

Returns the mass difference

isActive()

Is this pair realized?

setActive(active)

setCharge(pairID, e)

Sets the charge (for element 0 or 1)

setCompomer(compomer)

Sets the compomer that explains the mass difference

setEdgeScore(score)

Sets the ILP edge score

setElementIndex(pairID, e)

Sets the element index (for element 0 or 1)

setMassDiff(mass_diff)

Sets the mass difference

getCharge(pairID: int) → int#

Returns the charge (for element 0 or 1)

getCompomer() → pyopenms.Compomer#

Returns the compomer that explains the mass difference

getEdgeScore() → float#

Returns the ILP edge score

getElementIndex(pairID: int) → int#

Returns the element index (for element 0 or 1)

getMassDiff() → float#

Returns the mass difference

isActive() → bool#

Is this pair realized?

setActive(active: bool) → None#
setCharge(pairID: int, e: int) → None#

Sets the charge (for element 0 or 1)

setCompomer(compomer: pyopenms.Compomer) → None#

Sets the compomer that explains the mass difference

setEdgeScore(score: float) → None#

Sets the ILP edge score

setElementIndex(pairID: int, e: int) → None#

Sets the element index (for element 0 or 1)

setMassDiff(mass_diff: float) → None#

Sets the mass difference