IMSElement
- class pyopenms.IMSElement
Bases:
objectCython implementation of _IMSElement
Original C++ documentation is available here
- __init__()
Overload:
- __init__(self) None
Represents a chemical atom with name and isotope distribution
Overload:
- __init__(self, in_0: IMSElement) None
Overload:
- __init__(self, name: bytes, isotopes: IMSIsotopeDistribution) None
Overload:
- __init__(self, name: bytes, mass: float) None
Overload:
- __init__(self, name: bytes, nominal_mass: int) None
Methods
Overload:
getAverageMass(self)Gets element's average mass
getIonMass(self, electrons_number)Gets ion mass of element.
getIsotopeDistribution(self)Gets element's isotope distribution
getMass(self, index)Gets mass of element's isotope 'index'
getName(self)Gets element's name
getNominalMass(self)Gets element's nominal mass
getSequence(self)Gets element's sequence
setIsotopeDistribution(self, isotopes)Sets element's isotope distribution
setName(self, name)Sets element's name
setSequence(self, sequence)Sets element's sequence
- getAverageMass(self) float
Gets element’s average mass
- getIonMass(self, electrons_number: int) float
Gets ion mass of element. By default ion lacks 1 electron, but this can be changed by setting other ‘electrons_number’
- getIsotopeDistribution(self) IMSIsotopeDistribution
Gets element’s isotope distribution
- getMass(self, index: int) float
Gets mass of element’s isotope ‘index’
- getName(self) bytes
Gets element’s name
- getNominalMass(self) int
Gets element’s nominal mass
- getSequence(self) bytes
Gets element’s sequence
- setIsotopeDistribution(self, isotopes: IMSIsotopeDistribution) None
Sets element’s isotope distribution
- setName(self, name: bytes) None
Sets element’s name
- setSequence(self, sequence: bytes) None
Sets element’s sequence