IonSource#

class pyopenms.IonSource#

Bases: MetaInfoInterface

Description of an ion source (part of a MS Instrument)

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

Methods

__init__()

clearMetaInfo()

Removes all meta values

getAllNamesOfInletType()

Returns all inlet type names known to OpenMS

getAllNamesOfIonizationMethod()

Returns all ionization method names known to OpenMS

getAllNamesOfPolarity()

Returns all polarity names known to OpenMS

getInletType()

Returns the inlet type

getIonizationMethod()

Returns the ionization method

getKeys(keys)

Fills the given list with all meta value keys

getMetaValue(name)

Returns the value corresponding to a string, or DataValue::EMPTY if not found

getMetaValues()

Returns all meta values as a dictionary of {name: value}

getOrder()

Returns the position of this part in the whole Instrument

getPolarity()

Returns the ionization mode

inletTypeToString(type)

Convert an InletType enum to its string representation

ionizationMethodToString(method)

Convert an IonizationMethod enum to its string representation

isMetaEmpty()

Returns if the MetaInfo is empty

metaRegistry()

Returns a reference to the MetaInfoRegistry

metaValueExists(name)

Returns whether an entry with the given name exists

polarityToString(polarity)

Convert a Polarity enum to its string representation

removeMetaValue(name)

Removes the DataValue corresponding to name if it exists

setInletType(inlet_type)

Sets the inlet type

setIonizationMethod(ionization_type)

Sets the ionization method

setMetaValue(name, value)

Sets the DataValue corresponding to a name

setMetaValues(values)

Sets multiple meta values from a dictionary of {name: value}

setOrder(order)

Sets the order

setPolarity(polarity)

Sets the ionization mode

toInletType(name)

Convert a string to an InletType enum

toIonizationMethod(name)

Convert a string to an IonizationMethod enum

toPolarity(name)

Convert a string to a Polarity enum

class InletType(*values)#

Bases: Enum

BATCH = 2#
CHROMATOGRAPHY = 3#
CONTINUOUSFLOWFASTATOMBOMBARDMENT = 16#
DIRECT = 1#
ELECTROSPRAYINLET = 13#
FLOWINJECTIONANALYSIS = 12#
INDUCTIVELYCOUPLEDPLASMA = 17#
INFUSION = 15#
INLETNULL = 0#
JETSEPARATOR = 7#
MEMBRANE = 18#
MEMBRANESEPARATOR = 5#
MOVINGBELT = 10#
MOVINGWIRE = 11#
NANOSPRAY = 19#
OPENSPLIT = 6#
PARTICLEBEAM = 4#
RESERVOIR = 9#
SEPTUM = 8#
SIZE_OF_INLETTYPE = 20#
THERMOSPRAYINLET = 14#
getMapping()#

Returns a dict mapping int values to enum member name strings.

class IonizationMethod(*values)#

Bases: Enum

AD = 38#
AI = 36#
APCI = 17#
API = 12#
APPI = 18#
AP_MALDI = 49#
ASI = 37#
AUI = 39#
CAD = 15#
CEI = 40#
CHEMI = 41#
CI = 3#
CID = 14#
DI = 27#
DISSI = 42#
EI = 2#
ESI = 1#
FA = 28#
FAB = 4#
FD = 7#
FI = 8#
FIB = 24#
FII = 29#
GD_MS = 30#
HN = 16#
ICP = 19#
IONMETHODNULL = 0#
ISI = 13#
LD = 6#
LSI = 43#
MALDI = 25#
MESI = 21#
MPI = 26#
NESI = 20#
NICI = 31#
NRMS = 32#
PD = 9#
PEI = 44#
PI = 33#
PYMS = 34#
REMPI = 35#
SALDI = 51#
SELDI = 22#
SEND = 23#
SI = 10#
SILI = 50#
SIZE_OF_IONIZATIONMETHOD = 52#
SOI = 45#
SPI = 46#
SUI = 47#
TI = 11#
TSP = 5#
VI = 48#
getMapping()#

Returns a dict mapping int values to enum member name strings.

class Polarity(*values)#

Bases: Enum

NEGATIVE = 2#
POLNULL = 0#
POSITIVE = 1#
SIZE_OF_POLARITY = 3#
getMapping()#

Returns a dict mapping int values to enum member name strings.

clearMetaInfo() → None#

Removes all meta values

static getAllNamesOfInletType() → list[str]#

Returns all inlet type names known to OpenMS

static getAllNamesOfIonizationMethod() → list[str]#

Returns all ionization method names known to OpenMS

static getAllNamesOfPolarity() → list[str]#

Returns all polarity names known to OpenMS

getInletType() → pyopenms.IonSource.InletType#

Returns the inlet type

getIonizationMethod() → pyopenms.IonSource.IonizationMethod#

Returns the ionization method

getKeys(keys: list) → None#

Fills the given list with all meta value keys

getMetaValue(name: str) → None | int | float | str | bytes | list[str] | list[int] | list[float]#
getMetaValue(name: str, default_value: None | int | float | str | bytes | list[str] | list[int] | list[float]) → None | int | float | str | bytes | list[str] | list[int] | list[float]
getMetaValue(index: int) → None | int | float | str | bytes | list[str] | list[int] | list[float]
getMetaValue(index: int, default_value: None | int | float | str | bytes | list[str] | list[int] | list[float]) → None | int | float | str | bytes | list[str] | list[int] | list[float]

Returns the value corresponding to a string, or DataValue::EMPTY if not found

getMetaValues() → dict#

Returns all meta values as a dictionary of {name: value}

getOrder() → int#

Returns the position of this part in the whole Instrument

Order can be ignored, as long the instrument has this default setup:
  • one ion source

  • one or many mass analyzers

  • one ion detector

For more complex instruments, the order should be defined.

getPolarity() → pyopenms.IonSource.Polarity#

Returns the ionization mode

static inletTypeToString(type: pyopenms.IonSource.InletType) → str#

Convert an InletType enum to its string representation

static ionizationMethodToString(method: pyopenms.IonSource.IonizationMethod) → str#

Convert an IonizationMethod enum to its string representation

isMetaEmpty() → bool#

Returns if the MetaInfo is empty

static metaRegistry() → pyopenms.MetaInfoRegistry#

Returns a reference to the MetaInfoRegistry

metaValueExists(name: str) → bool#
metaValueExists(index: int) → bool

Returns whether an entry with the given name exists

static polarityToString(polarity: pyopenms.IonSource.Polarity) → str#

Convert a Polarity enum to its string representation

removeMetaValue(name: str) → None#
removeMetaValue(index: int) → None

Removes the DataValue corresponding to name if it exists

setInletType(inlet_type: pyopenms.IonSource.InletType) → None#

Sets the inlet type

setIonizationMethod(ionization_type: pyopenms.IonSource.IonizationMethod) → None#

Sets the ionization method

setMetaValue(name: str, value: None | int | float | str | bytes | list[str] | list[int] | list[float]) → None#
setMetaValue(index: int, value: None | int | float | str | bytes | list[str] | list[int] | list[float]) → None

Sets the DataValue corresponding to a name

setMetaValues(values: dict) → None#

Sets multiple meta values from a dictionary of {name: value}

setOrder(order: int) → None#

Sets the order

setPolarity(polarity: pyopenms.IonSource.Polarity) → None#

Sets the ionization mode

static toInletType(name: str) → pyopenms.IonSource.InletType#

Convert a string to an InletType enum

static toIonizationMethod(name: str) → pyopenms.IonSource.IonizationMethod#

Convert a string to an IonizationMethod enum

static toPolarity(name: str) → pyopenms.IonSource.Polarity#

Convert a string to a Polarity enum