StringDataArray#
- class pyopenms.StringDataArray(*args, **kwargs)#
Bases:
objectThe 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.
__init__(self) -> None__init__(self, arg: pyopenms._pyopenms_kernel.StringDataArray, /) -> None__init__(self) -> None
Default constructor
__init__(self, arg: pyopenms._pyopenms_kernel.StringDataArray, /) -> None
Copy constructor
Attributes
Clear the array
Removes all meta values
Returns the data processing steps
Overloaded function.
Returns the value corresponding to a string, or DataValue::EMPTY if not found
Returns the name of the peak annotations
Returns a copy of the data as a list
Returns if the MetaInfo is empty
Returns whether an entry with the given name exists
Add a value to the array
Removes the DataValue corresponding to name if it exists
Resize the array
Sets the description of the applied processing
Sets the DataValue corresponding to a name
Sets the name of the peak annotations
Set data from a list
Returns the number of elements
- clear#
Clear the array
- clearMetaInfo#
Removes all meta values
- getDataProcessing#
Returns the data processing steps
- getKeys#
Overloaded function.
getKeys(self, keys: list) -> None
Fills the given list with all meta value keys
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