toQCMetric {rmzqc}R Documentation

Create an 'MzQCqualityMetric' object from two inputs

Description

Create an 'MzQCqualityMetric' object from two inputs

Usage

toQCMetric(id, value, on_violation = c("error", "warn"))

Arguments

id

The CV accession

value

The data, as computed by some QC software in the required format.

on_violation

What to do when 'value' is not of the correct type (according to the given 'id')? Default: "error"; or "warn"

Details

The inputs are:

The value must be in the correct format depending on the metric. The value type (see below) is checked (a warning/error is given if mismatching): The following requirements for values apply:

Upon violation, an error (default) or a warning is emitted:

   toQCMetric(id = "MS:4000059", value = data.frame(n = 1)) # errors: wrong value format
 

Value

An MzQCanalysisSoftware object

Examples

   toQCMetric(id = "MS:4000059", value = 13405) # number of MS1 spectra


[Package rmzqc version 0.5.4 Index]