ExperimentalSettings#
- class pyopenms.ExperimentalSettings#
Bases:
objectDescription of the experimental settings, provides meta-information about an LC-MS/MS injection.
- __init__() None#
- __init__(arg: pyopenms.ExperimentalSettings, /) None
Methods
__init__()Removes all meta values
Returns the free-text comment
Returns a copy of the list of contact persons
Returns the date the experiment was performed
Returns fraction identifier
getHPLC()Returns a copy of the description of the HPLC run
Retrieve document identifier (e.g. an LSID).
Returns a copy of the MS instrument description
getKeys(keys)Overloaded function.
Returns the file_name which is the absolute path to the file loaded
Returns the file_type (e.g. featureXML, consensusXML, mzData, mzXML, mzML, ...) of the file loaded.
getMetaValue(name)Returns the value corresponding to a string, or DataValue::EMPTY if not found
Returns a copy of the sample description
Returns a copy of the source data file
Returns if the MetaInfo is empty
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
setComment(comment)Sets the free-text comment
setContacts(contacts)Sets the list of contact persons
setDateTime(date)Sets the date the experiment was performed
setFractionIdentifier(fraction_identifier)Sets the fraction identifier
setHPLC(hplc)Sets the description of the HPLC run
setIdentifier(id)Sets document identifier (e.g. an LSID).
setInstrument(instrument)Sets the MS instrument description
setInstrumentConfigurations(configurations)setLoadedFilePath(file_name)Sets the file_name according to absolute path of the file loaded, preferably done whilst loading
setLoadedFileType(file_name)Sets the file_type according to the type of the file loaded from, preferably done whilst loading
setMetaValue(name, value)Sets the DataValue corresponding to a name
setSample(sample)Sets the sample description
setSourceFiles(source_files)Sets the source data file
- clearMetaInfo() None#
Removes all meta values
- getComment() str#
Returns the free-text comment
- getContacts() list[pyopenms.ContactPerson]#
Returns a copy of the list of contact persons
- getDateTime() pyopenms.DateTime#
Returns the date the experiment was performed
- getFractionIdentifier() str#
Returns fraction identifier
- getHPLC() pyopenms.HPLC#
Returns a copy of the description of the HPLC run
- getIdentifier() str#
Retrieve document identifier (e.g. an LSID)
- getInstrument() pyopenms.Instrument#
Returns a copy of the MS instrument description
- getInstrumentConfigurations() dict[str, pyopenms.Instrument]#
- 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
- getLoadedFilePath() str#
Returns the file_name which is the absolute path to the file loaded
- getLoadedFileType() pyopenms.FileTypes.FileType#
Returns the file_type (e.g. featureXML, consensusXML, mzData, mzXML, mzML, …) of the file loaded
- 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
- getSample() pyopenms.Sample#
Returns a copy of the sample description
- getSourceFiles() list[pyopenms.SourceFile]#
Returns a copy of the source data file
- isMetaEmpty() bool#
Returns if the MetaInfo is empty
- 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
- setComment(comment: str) None#
Sets the free-text comment
- setContacts(contacts: collections.abc.Sequence[pyopenms.ContactPerson]) None#
Sets the list of contact persons
- setDateTime(date: pyopenms.DateTime) None#
Sets the date the experiment was performed
- setFractionIdentifier(fraction_identifier: str) None#
Sets the fraction identifier
- setHPLC(hplc: pyopenms.HPLC) None#
Sets the description of the HPLC run
- setIdentifier(id: str) None#
Sets document identifier (e.g. an LSID)
- setInstrument(instrument: pyopenms.Instrument) None#
Sets the MS instrument description
- setInstrumentConfigurations(configurations: dict[str, pyopenms.Instrument]) None#
- setLoadedFilePath(file_name: str) None#
Sets the file_name according to absolute path of the file loaded, preferably done whilst loading
- setLoadedFileType(file_name: str) None#
Sets the file_type according to the type of the file loaded from, preferably done whilst loading
- setMetaValue(name: str, value: None | int | float | str | bytes | list[str] | list[int] | list[float]) None#
Sets the DataValue corresponding to a name
- setSample(sample: pyopenms.Sample) None#
Sets the sample description
- setSourceFiles(source_files: collections.abc.Sequence[pyopenms.SourceFile]) None#
Sets the source data file