getQualityMetricTemplate: Fills a MzQCqualityMetric object with id(accession) and name....

View source: R/templates.R

getQualityMetricTemplateR Documentation

Fills a MzQCqualityMetric object with id(accession) and name. The value (if any) and unit (if any) need to be set afterwards.

Description

The accession must be valid (or allow_unknown_id must be TRUE)

Usage

getQualityMetricTemplate(
  accession,
  CV = getCVSingleton(),
  allow_unknown_id = FALSE
)

Arguments

accession

The ID (=accession) of the term in the CV

CV

A CV dictionary, as obtained by getCVDictionary(); defaults to the global singleton, which is populated automatically

allow_unknown_id

Allows invalid accession; if 'FALSE' this function errors if accession is unknown

Value

An instance of MzQCqualityMetric


rmzqc documentation built on April 4, 2025, 2:46 a.m.