getQualityMetricTemplate function

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

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

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

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

Returns

An instance of MzQCqualityMetric

  • Maintainer: Chris Bielow
  • License: MIT + file LICENSE
  • Last published: 2025-03-23