BaseFeature#
- class pyopenms.BaseFeature#
Bases:
RichPeak2DA basic LC-MS feature
- __init__() None#
- __init__(arg: pyopenms.BaseFeature, /) None
- __init__(arg0: pyopenms.BaseFeature, arg1: int, /) None
- __init__(arg: pyopenms.Peak2D, /) None
- __init__(arg: pyopenms.RichPeak2D, /) None
- __init__(arg: pyopenms.FeatureHandle, /) None
Methods
__init__()Removes all meta values
Clear the unique id.
Assigns a valid unique id, but only if the present one is invalid.
State of peptide identifications attached to this feature.
Returns the charge state
Overloaded function.
getKeys(keys)Overloaded function.
getMZ()Overloaded function.
getMetaValue(name)Returns the value corresponding to a string, or DataValue::EMPTY if not found
Returns the PeptideIdentification vector
Returns the overall quality
getRT()Overloaded function.
Returns the unique id
getWidth()Returns the features width (full width at half max, FWHM)
Returns whether the unique id is invalid.
Returns whether the unique id is valid.
Returns if the MetaInfo is empty
isValid(unique_id)Returns true if the unique_id is valid, false otherwise
Returns a reference to the MetaInfoRegistry
metaValueExists(name)Returns whether an entry with the given name exists
removeMetaValue(name)Removes the DataValue corresponding to name if it exists
setCharge(ch)Sets the charge state
setIntensity(intensity)Overloaded function.
setMZ(coordinate)Overloaded function.
setMetaValue(name, value)Sets the DataValue corresponding to a name
setPeptideIdentifications(peptides)Sets the PeptideIdentification vector
setQuality(q)Sets the overall quality
setRT(coordinate)Overloaded function.
Overloaded function.
setWidth(fwhm)Sets the width of the feature (FWHM)
Attributes
- class AnnotationState(*values)#
Bases:
EnumState of peptide identification annotation for a feature
- FEATURE_ID_MULTIPLE_DIVERGENT = 3#
- FEATURE_ID_MULTIPLE_SAME = 2#
- FEATURE_ID_NONE = 0#
- FEATURE_ID_SINGLE = 1#
- SIZE_OF_ANNOTATIONSTATE = 4#
- getMapping()#
Returns a dict mapping int values to enum member name strings.
- FEATURE_ID_MULTIPLE_DIVERGENT = 3#
- FEATURE_ID_MULTIPLE_SAME = 2#
- FEATURE_ID_NONE = 0#
- FEATURE_ID_SINGLE = 1#
- SIZE_OF_ANNOTATIONSTATE = 4#
- clearMetaInfo() None#
Removes all meta values
- clearUniqueId() int#
Clear the unique id. The new unique id will be invalid. Returns 1 if the unique id was changed, 0 otherwise
- ensureUniqueId() int#
Assigns a valid unique id, but only if the present one is invalid. Returns 1 if the unique id was changed, 0 otherwise
- getAnnotationState() pyopenms.BaseFeature.AnnotationState#
State of peptide identifications attached to this feature. If one ID has multiple hits, the output depends on the top-hit only
- getCharge() int#
Returns the charge state
- getIntensity() float#
- getIntensity() float
Overloaded function.
getIntensity() -> float
Returns the data point intensity (height)
getIntensity() -> float
Returns the intensity
- getKeys(keys: list) None#
- getKeys() list
Overloaded function.
getKeys(keys: list) -> None
Fills the given list with all meta value keys
getKeys() -> list
Returns all meta value keys as a list
- getMZ() float#
- getMZ() float
Overloaded function.
getMZ() -> float
Returns the m/z coordinate (index 1)
getMZ() -> float
Returns the m/z
- getMetaValue(name: str) None | int | float | str | bytes | list[str] | list[int] | list[float]#
Returns the value corresponding to a string, or DataValue::EMPTY if not found
- getPeptideIdentifications() pyopenms.PeptideIdentificationList#
Returns the PeptideIdentification vector
- getQuality() float#
Returns the overall quality
- getRT() float#
- getRT() float
Overloaded function.
getRT() -> float
Returns the RT coordinate (index 0)
getRT() -> float
Returns the retention time
- getUniqueId() int#
Returns the unique id
- getWidth() float#
Returns the features width (full width at half max, FWHM)
- hasInvalidUniqueId() int#
Returns whether the unique id is invalid. Returns 1 if the unique id is invalid, 0 otherwise
- hasValidUniqueId() int#
Returns whether the unique id is valid. Returns 1 if the unique id is valid, 0 otherwise
- isMetaEmpty() bool#
Returns if the MetaInfo is empty
- static isValid(unique_id: int) bool#
Returns true if the unique_id is valid, false otherwise
- static metaRegistry() pyopenms.MetaInfoRegistry#
Returns a reference to the MetaInfoRegistry
- metaValueExists(name: str) bool#
Returns whether an entry with the given name exists
- removeMetaValue(name: str) None#
Removes the DataValue corresponding to name if it exists
- setCharge(ch: int) None#
Sets the charge state
- setIntensity(intensity: float) None#
- setIntensity(intensity: float) None
Overloaded function.
setIntensity(intensity: float) -> None
Sets the data point intensity (height)
setIntensity(intensity: float) -> None
Sets the intensity
- setMZ(coordinate: float) None#
- setMZ(mz: float) None
Overloaded function.
setMZ(coordinate: float) -> None
Sets the m/z coordinate (index 1)
setMZ(mz: float) -> None
Sets the m/z
- setMetaValue(name: str, value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None#
Sets the DataValue corresponding to a name
- setPeptideIdentifications(peptides: pyopenms.PeptideIdentificationList) None#
Sets the PeptideIdentification vector
- setQuality(q: float) None#
Sets the overall quality
- setRT(coordinate: float) None#
- setRT(rt: float) None
Overloaded function.
setRT(coordinate: float) -> None
Sets the RT coordinate (index 0)
setRT(rt: float) -> None
Sets the retention time
- setUniqueId() int#
- setUniqueId(rhs: int) None
- setUniqueId(rhs: str) None
Overloaded function.
setUniqueId() -> int
Assigns a new, valid unique id. Always returns 1
setUniqueId(rhs: int) -> None
Assigns the given unique id
setUniqueId(rhs: str) -> None
Assigns a unique id from a string (extracts UInt64 after last underscore)
- setWidth(fwhm: float) None#
Sets the width of the feature (FWHM)