IntegerDataArray#
- class pyopenms.IntegerDataArray#
Bases:
objectCython implementation of _IntegerDataArray
- Original C++ documentation is available here
– Inherits from [‘MetaInfoDescription’]
The representation of extra integer data attached to a spectrum or chromatogram. Raw data access is proved by get_peaks and set_peaks, which yields numpy arrays
- __init__()#
Overload:
- __init__(self) None
Overload:
- __init__(self, in_0: IntegerDataArray) None
Methods
Overload:
clear(self)clearMetaInfo(self)Removes all meta values
getDataProcessing(self)Returns a reference to the description of the applied processing
getKeys(self, keys)Fills the given vector with a list of all keys for which a value is set
getMetaValue(self, in_0)Returns the value corresponding to a string, or
getName(self)Returns the name of the peak annotations
Gets the raw data for the integer data array
isMetaEmpty(self)Returns if the MetaInfo is empty
metaRegistry(self)Returns a reference to the MetaInfoRegistry
metaValueExists(self, in_0)Returns whether an entry with the given name exists
push_back(self, in_0)removeMetaValue(self, in_0)Removes the DataValue corresponding to name if it exists
reserve(self, n)resize(self, n)setDataProcessing(self, in_0)Sets the description of the applied processing
setMetaValue(self, in_0, in_1)Sets the DataValue corresponding to a name
setName(self, name)Sets the name of the peak annotations
Sets the raw data for the integer data array
size(self)- clear(self) None#
- clearMetaInfo(self) None#
Removes all meta values
- getDataProcessing(self) List[DataProcessing]#
Returns a reference to the description of the applied processing
- getKeys(self, keys: List[bytes]) None#
Fills the given vector with a list of all keys for which a value is set
- getMetaValue(self, in_0: bytes | str | String) int | float | bytes | str | List[int] | List[float] | List[bytes]#
Returns the value corresponding to a string, or
- get_data()#
Gets the raw data for the integer data array
Example usage:
idata = pyopenms.IntegerDataArray() data = idata.get_data()
- isMetaEmpty(self) bool#
Returns if the MetaInfo is empty
- metaRegistry(self) MetaInfoRegistry#
Returns a reference to the MetaInfoRegistry
- metaValueExists(self, in_0: bytes | str | String) bool#
Returns whether an entry with the given name exists
- push_back(self, in_0: int) None#
- removeMetaValue(self, in_0: bytes | str | String) None#
Removes the DataValue corresponding to name if it exists
- reserve(self, n: int) None#
- resize(self, n: int) None#
- setDataProcessing(self, in_0: List[DataProcessing]) None#
Sets the description of the applied processing
- setMetaValue(self, in_0: bytes | str | String, in_1: int | float | bytes | str | List[int] | List[float] | List[bytes]) None#
Sets the DataValue corresponding to a name
- set_data()#
Sets the raw data for the integer data array
Example usage:
idata = pyopenms.IntegerDataArray() data = numpy.array( [1, 2, 3, 5 ,6] ).astype(np.intc) idata.set_data(data)
- size(self) int#