FileHandler#
- class pyopenms.FileHandler().loadExperiment("test.mzML", exp)#
Bases:
object- __init__(self) None#
Attributes
Returns a copy of the feature file options for loading/storing
Access to the options for loading/storing
Overloaded function.
Overloaded function.
Overloaded function.
Overloaded function.
Overloaded function.
Overloaded function.
Overloaded function.
Set feature file options for loading/storing
Sets options for loading/storing
Overloaded function.
Overloaded function.
Overloaded function.
Overloaded function.
Overloaded function.
Overloaded function.
Overloaded function.
- computeFileHash = <nanobind.nb_func object>#
- getConsistentOutputfileType = <nanobind.nb_func object>#
- getFeatOptions#
Returns a copy of the feature file options for loading/storing
- getOptions#
Access to the options for loading/storing
- getType = <nanobind.nb_func object>#
- getTypeByContent = <nanobind.nb_func object>#
- getTypeByFileName = <nanobind.nb_func object>#
- hasValidExtension = <nanobind.nb_func object>#
- isSupported = <nanobind.nb_func object>#
- loadConsensusFeatures#
Overloaded function.
loadConsensusFeatures(self, filename: str) -> pyopenms._pyopenms_kernel.ConsensusMap
Load a ConsensusMap from a file
loadConsensusFeatures(self, filename: str, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType], log: pyopenms._pyopenms_misc.ProgressLogger.LogType) -> pyopenms._pyopenms_kernel.ConsensusMap
Load a ConsensusMap from a file with options
- loadExperiment#
Overloaded function.
loadExperiment(self, filename: str, exp: pyopenms._pyopenms_experiment.MSExperiment) -> None
Load experiment from file. Thermo .raw files are centroided with Thermo’s peak picking; use ThermoRawFile to keep the scans as acquired
loadExperiment(self, filename: str, exp: pyopenms._pyopenms_experiment.MSExperiment, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType], log: pyopenms._pyopenms_misc.ProgressLogger.LogType, rewrite_source_file: bool = False, compute_hash: bool = False) -> None
Load experiment with options
- loadFeatures#
Overloaded function.
loadFeatures(self, filename: str) -> pyopenms._pyopenms_kernel.FeatureMap
Loads features from a file into a FeatureMap (auto-detect file type) :param filename: The name of the file to load features from :returns: FeatureMap containing the loaded features :raises: Exception: FileNotFound is thrown if the file could not be opened
loadFeatures(self, filename: str, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType], log: pyopenms._pyopenms_misc.ProgressLogger.LogType) -> pyopenms._pyopenms_kernel.FeatureMap
Loads features from a file into a FeatureMap :param filename: The name of the file to load features from :param allowed_types: List of allowed file types :param log: Progress logging mode :returns: FeatureMap containing the loaded features :raises: Exception: FileNotFound is thrown if the file could not be opened
- loadIdentifications#
Overloaded function.
loadIdentifications(self, filename: str) -> tuple
Load identifications from file. Returns (list[ProteinIdentification], PeptideIdentificationList)
loadIdentifications(self, filename: str, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType], log: pyopenms._pyopenms_misc.ProgressLogger.LogType) -> tuple
Load identifications from file with options. Returns (list[ProteinIdentification], PeptideIdentificationList)
- loadSpectrum#
Overloaded function.
loadSpectrum(self, filename: str) -> pyopenms._pyopenms_spectrum.MSSpectrum
Load a single MSSpectrum from a file
loadSpectrum(self, filename: str, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType]) -> pyopenms._pyopenms_spectrum.MSSpectrum
Load a single MSSpectrum from a file with allowed types filter
- loadTransformations#
Overloaded function.
loadTransformations(self, filename: str, fit_model: bool = True) -> pyopenms._pyopenms_analysis.TransformationDescription
Load transformation description from file
loadTransformations(self, filename: str, fit_model: bool, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType]) -> pyopenms._pyopenms_analysis.TransformationDescription
Load transformation description from file with allowed types filter
- loadTransitions#
Overloaded function.
loadTransitions(self, filename: str) -> pyopenms._pyopenms_analysis.TargetedExperiment
Load targeted experiment transitions from file
loadTransitions(self, filename: str, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType], log: pyopenms._pyopenms_misc.ProgressLogger.LogType) -> pyopenms._pyopenms_analysis.TargetedExperiment
Load targeted experiment transitions from file with options
- setFeatOptions#
Set feature file options for loading/storing
- setOptions#
Sets options for loading/storing
- storeConsensusFeatures#
Overloaded function.
storeConsensusFeatures(self, filename: str, map: pyopenms._pyopenms_kernel.ConsensusMap) -> None
Store a ConsensusMap to a file
storeConsensusFeatures(self, filename: str, map: pyopenms._pyopenms_kernel.ConsensusMap, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType], log: pyopenms._pyopenms_misc.ProgressLogger.LogType) -> None
Store a ConsensusMap to a file with options
- storeExperiment#
Overloaded function.
storeExperiment(self, filename: str, exp: pyopenms._pyopenms_experiment.MSExperiment) -> None
Store experiment to file
storeExperiment(self, filename: str, exp: pyopenms._pyopenms_experiment.MSExperiment, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType], log: pyopenms._pyopenms_misc.ProgressLogger.LogType) -> None
Store experiment with options
- storeFeatures#
Overloaded function.
storeFeatures(self, filename: str, map: pyopenms._pyopenms_kernel.FeatureMap) -> None
Store a FeatureMap to a file
storeFeatures(self, filename: str, map: pyopenms._pyopenms_kernel.FeatureMap, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType], log: pyopenms._pyopenms_misc.ProgressLogger.LogType) -> None
Store a FeatureMap to a file with options
- storeIdentifications#
Overloaded function.
storeIdentifications(self, filename: str, proteins: collections.abc.Sequence[pyopenms._pyopenms_kernel.ProteinIdentification], peptides: pyopenms._pyopenms_metadata.PeptideIdentificationList) -> None
Store identifications to file
storeIdentifications(self, filename: str, proteins: collections.abc.Sequence[pyopenms._pyopenms_kernel.ProteinIdentification], peptides: pyopenms._pyopenms_metadata.PeptideIdentificationList, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType], log: pyopenms._pyopenms_misc.ProgressLogger.LogType) -> None
Store identifications to file with options
- storeSpectrum#
Overloaded function.
storeSpectrum(self, filename: str, spec: pyopenms._pyopenms_spectrum.MSSpectrum) -> None
Store a single MSSpectrum to a file
storeSpectrum(self, filename: str, spec: pyopenms._pyopenms_spectrum.MSSpectrum, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType]) -> None
Store a single MSSpectrum to a file with allowed types filter
- storeTransformations#
Overloaded function.
storeTransformations(self, filename: str, map: pyopenms._pyopenms_analysis.TransformationDescription) -> None
Store transformation description to file
storeTransformations(self, filename: str, map: pyopenms._pyopenms_analysis.TransformationDescription, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType]) -> None
Store transformation description to file with allowed types filter
- storeTransitions#
Overloaded function.
storeTransitions(self, filename: str, library: pyopenms._pyopenms_analysis.TargetedExperiment) -> None
Store targeted experiment transitions to file
storeTransitions(self, filename: str, library: pyopenms._pyopenms_analysis.TargetedExperiment, allowed_types: collections.abc.Sequence[pyopenms._pyopenms_format.FileTypes.FileType], log: pyopenms._pyopenms_misc.ProgressLogger.LogType) -> None
Store targeted experiment transitions to file with options
- stripExtension = <nanobind.nb_func object>#
- swapExtension = <nanobind.nb_func object>#