SourceFile#

class pyopenms.SourceFile#

Bases: object

Cython implementation of _SourceFile

Original C++ documentation is available here

__init__()#

Overload:

__init__(self) None

Description of a file location, used to store the origin of (meta) data

Overload:

__init__(self, in_0: SourceFile) None

Methods

__init__

Overload:

getChecksum(self)

Returns the file's checksum

getChecksumType(self)

Returns the checksum type

getFileSize(self)

Returns the file size in MB

getFileType(self)

Returns the file type

getNameOfFile(self)

Returns the file name

getNativeIDType(self)

Returns the native ID type of the spectra

getNativeIDTypeAccession(self)

Returns the nativeID of the spectra

getPathToFile(self)

Returns the file path

setChecksum(self, in_0, in_1)

Sets the file's checksum

setFileSize(self, in_0)

Sets the file size in MB

setFileType(self, in_0)

Sets the file type

setNameOfFile(self, in_0)

Sets the file name

setNativeIDType(self, in_0)

Sets the native ID type of the spectra

setNativeIDTypeAccession(self, accesssion)

Sets the native ID of the spectra

setPathToFile(self, in_0)

Sets the file path

getChecksum(self) bytes | str | String#

Returns the file’s checksum

getChecksumType(self) int#

Returns the checksum type

getFileSize(self) float#

Returns the file size in MB

getFileType(self) bytes | str | String#

Returns the file type

getNameOfFile(self) bytes | str | String#

Returns the file name

getNativeIDType(self) bytes | str | String#

Returns the native ID type of the spectra

getNativeIDTypeAccession(self) bytes | str | String#

Returns the nativeID of the spectra

getPathToFile(self) bytes | str | String#

Returns the file path

setChecksum(self, in_0: bytes | str | String, in_1: int) None#

Sets the file’s checksum

setFileSize(self, in_0: float) None#

Sets the file size in MB

setFileType(self, in_0: bytes | str | String) None#

Sets the file type

setNameOfFile(self, in_0: bytes | str | String) None#

Sets the file name

setNativeIDType(self, in_0: bytes | str | String) None#

Sets the native ID type of the spectra

setNativeIDTypeAccession(self, accesssion: bytes | str | String) None#

Sets the native ID of the spectra

setPathToFile(self, in_0: bytes | str | String) None#

Sets the file path