StringDataArray#

class pyopenms.StringDataArray(*args, **kwargs)#

Bases: object

The representation of extra string data attached to a spectrum or chromatogram. Commonly used for storing ion annotation names or other per-peak string annotations.

__init__(self) → None#
__init__(self, arg: pyopenms._pyopenms_kernel.StringDataArray, /) → None
__init__(self) → None
__init__(self, arg: pyopenms._pyopenms_kernel.StringDataArray, /) → None

Overloaded function.

  1. __init__(self) -> None

  2. __init__(self, arg: pyopenms._pyopenms_kernel.StringDataArray, /) -> None

  3. __init__(self) -> None

Default constructor

  1. __init__(self, arg: pyopenms._pyopenms_kernel.StringDataArray, /) -> None

Copy constructor

Attributes

clear

Clear the array

clearMetaInfo

Removes all meta values

getDataProcessing

Returns the data processing steps

getKeys

Overloaded function.

getMetaValue

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

getName

Returns the name of the peak annotations

get_data

Returns a copy of the data as a list

isMetaEmpty

Returns if the MetaInfo is empty

metaRegistry

metaValueExists

Returns whether an entry with the given name exists

push_back

Add a value to the array

removeMetaValue

Removes the DataValue corresponding to name if it exists

resize

Resize the array

setDataProcessing

Sets the description of the applied processing

setMetaValue

Sets the DataValue corresponding to a name

setName

Sets the name of the peak annotations

set_data

Set data from a list

size

Returns the number of elements

clear#

Clear the array

clearMetaInfo#

Removes all meta values

getDataProcessing#

Returns the data processing steps

getKeys#

Overloaded function.

  1. getKeys(self, keys: list) -> None

Fills the given list with all meta value keys

  1. getKeys(self) -> list

Returns all meta value keys as a list

getMetaValue#

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

getName#

Returns the name of the peak annotations

get_data#

Returns a copy of the data as a list

isMetaEmpty#

Returns if the MetaInfo is empty

metaRegistry = <nanobind.nb_func object>#
metaValueExists#

Returns whether an entry with the given name exists

push_back#

Add a value to the array

removeMetaValue#

Removes the DataValue corresponding to name if it exists

resize#

Resize the array

setDataProcessing#

Sets the description of the applied processing

setMetaValue#

Sets the DataValue corresponding to a name

setName#

Sets the name of the peak annotations

set_data#

Set data from a list

size#

Returns the number of elements