QcMLFile

class pyopenms.QcMLFile

Bases: object

Cython implementation of _QcMLFile

Original C++ documentation is available here

– Inherits from [‘XMLHandler’, ‘XMLFile’, ‘ProgressLogger’]

__init__(self) None

Methods

__init__(self)

addRunAttachment(self, r, at)

Adds a attachment to run by the name r

addRunQualityParameter(self, r, qp)

Adds a QualityParameter to run by the name r

addSetAttachment(self, r, at)

Adds a attachment to set by the name r

addSetQualityParameter(self, r, qp)

Adds a QualityParameter to set by the name r

collectSetParameter(self, setname, qp, ret)

Collects the values of given QPs (as CVid) of the given set

endProgress(self)

Ends the progress display

error(self, mode, msg, line, column)

errorString(self)

existsRun(self, filename)

Returns true if the given run id is present in this file, if checkname is true it also checks the names

existsRunQualityParameter(self, filename, ...)

Returns the ids of the parameter name given if found in given run empty else

existsSet(self, filename)

Returns true if the given set id is present in this file, if checkname is true it also checks the names

existsSetQualityParameter(self, filename, ...)

Returns the ids of the parameter name given if found in given set, empty else

exportAttachment(self, filename, qpname)

Returns a String of a tab separated rows if found empty string else from run/set by the name filename of the qualityparameter by the name qpname

exportIDstats(self, filename)

exportQP(self, filename, qpname)

Returns a String value in quotation of a QualityParameter by the name qpname in run/set by the name filename

exportQPs(self, filename, qpnames)

Returns a String of a tab separated QualityParameter by the name qpname in run/set by the name filename

getLogType(self)

Returns the type of progress log being used

getRunIDs(self, ids)

Gives the ids of the registered runs in the vector ids

getRunNames(self, ids)

Gives the names of the registered runs in the vector ids

getVersion(self)

Return the version of the schema

load(self, filename)

Load a QCFile

map2csv

merge(self, addendum, setname)

Merges the given QCFile into this one

nextProgress(self)

Increment progress by 1 (according to range begin-end)

registerRun(self, id_, name)

Registers a run in the qcml file with the respective mappings

registerSet(self, id_, name, names)

Registers a set in the qcml file with the respective mappings

removeAllAttachments(self, at)

Removes attachment with cv accession at from all runs/sets

removeAttachment

Overload:

removeQualityParameter(self, r, ids)

Removes QualityParameter going by one of the ID attributes given in ids

reset(self)

setLogType(self, in_0)

Sets the progress log that should be used.

setProgress(self, value)

Sets the current progress

startProgress(self, begin, end, label)

store(self, filename)

Store the qcML file

warning(self, mode, msg, line, column)

addRunAttachment(self, r: Union[bytes, str, String], at: Attachment) None

Adds a attachment to run by the name r

addRunQualityParameter(self, r: Union[bytes, str, String], qp: QualityParameter) None

Adds a QualityParameter to run by the name r

addSetAttachment(self, r: Union[bytes, str, String], at: Attachment) None

Adds a attachment to set by the name r

addSetQualityParameter(self, r: Union[bytes, str, String], qp: QualityParameter) None

Adds a QualityParameter to set by the name r

collectSetParameter(self, setname: Union[bytes, str, String], qp: Union[bytes, str, String], ret: List[bytes]) None

Collects the values of given QPs (as CVid) of the given set

endProgress(self) None

Ends the progress display

error(self, mode: int, msg: Union[bytes, str, String], line: int, column: int) None
errorString(self) Union[bytes, str, String]
existsRun(self, filename: Union[bytes, str, String]) bool

Returns true if the given run id is present in this file, if checkname is true it also checks the names

existsRunQualityParameter(self, filename: Union[bytes, str, String], qpname: Union[bytes, str, String], ids: List[bytes]) None

Returns the ids of the parameter name given if found in given run empty else

existsSet(self, filename: Union[bytes, str, String]) bool

Returns true if the given set id is present in this file, if checkname is true it also checks the names

existsSetQualityParameter(self, filename: Union[bytes, str, String], qpname: Union[bytes, str, String], ids: List[bytes]) None

Returns the ids of the parameter name given if found in given set, empty else

exportAttachment(self, filename: Union[bytes, str, String], qpname: Union[bytes, str, String]) Union[bytes, str, String]

Returns a String of a tab separated rows if found empty string else from run/set by the name filename of the qualityparameter by the name qpname

exportIDstats(self, filename: Union[bytes, str, String]) Union[bytes, str, String]
exportQP(self, filename: Union[bytes, str, String], qpname: Union[bytes, str, String]) Union[bytes, str, String]

Returns a String value in quotation of a QualityParameter by the name qpname in run/set by the name filename

exportQPs(self, filename: Union[bytes, str, String], qpnames: List[bytes]) Union[bytes, str, String]

Returns a String of a tab separated QualityParameter by the name qpname in run/set by the name filename

getLogType(self) int

Returns the type of progress log being used

getRunIDs(self, ids: List[bytes]) None

Gives the ids of the registered runs in the vector ids

getRunNames(self, ids: List[bytes]) None

Gives the names of the registered runs in the vector ids

getVersion(self) Union[bytes, str, String]

Return the version of the schema

load(self, filename: Union[bytes, str, String]) None

Load a QCFile

map2csv()
merge(self, addendum: QcMLFile, setname: Union[bytes, str, String]) None

Merges the given QCFile into this one

nextProgress(self) None

Increment progress by 1 (according to range begin-end)

registerRun(self, id_: Union[bytes, str, String], name: Union[bytes, str, String]) None

Registers a run in the qcml file with the respective mappings

registerSet(self, id_: Union[bytes, str, String], name: Union[bytes, str, String], names: Set[bytes]) None

Registers a set in the qcml file with the respective mappings

removeAllAttachments(self, at: Union[bytes, str, String]) None

Removes attachment with cv accession at from all runs/sets

removeAttachment()

Overload:

removeAttachment(self, r: Union[bytes, str, String], ids: List[bytes], at: Union[bytes, str, String]) None

Removes attachments referencing an id given in ids, from run/set r. All attachments if no attachment name is given with at

Overload:

removeAttachment(self, r: Union[bytes, str, String], at: Union[bytes, str, String]) None

Removes attachment with cv accession at from run/set r

removeQualityParameter(self, r: Union[bytes, str, String], ids: List[bytes]) None

Removes QualityParameter going by one of the ID attributes given in ids

reset(self) None
setLogType(self, in_0: int) None

Sets the progress log that should be used. The default type is NONE!

setProgress(self, value: int) None

Sets the current progress

startProgress(self, begin: int, end: int, label: Union[bytes, str, String]) None
store(self, filename: Union[bytes, str, String]) None

Store the qcML file

warning(self, mode: int, msg: Union[bytes, str, String], line: int, column: int) None