| Title: | Read, Write, Validate, and Analyze Real-Time PCR Data in the 'RDML' Format |
|---|---|
| Description: | Reads, writes, validates, converts, and manipulates quantitative polymerase chain reaction (qPCR) data through the Real-Time PCR Data Markup Language ('RDML') application programming interface (API), using 'S7' objects. Includes an extensible file-format registry, vendor and tabular-data importers, 'RDES' import and export, fluorescence-table helpers, semantic validation, and compatibility wrappers for the historical 'RDML' API. |
| Authors: | Konstantin A. Blagodatskikh [cre, aut], Stefan Roediger [ctb], Michal Burdukiewicz [ctb], Andrej-Nikolai Spiess [ctb] |
| Maintainer: | Konstantin A. Blagodatskikh <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 1.0.2 |
| Built: | 2026-10-23 10:04:36 UTC |
| Source: | https://github.com/kablag/rdml7 |
Free-form property/value annotation attached to a sample. Inherits from 'rdmlBaseType'.
annotationType(property = NA_character_, value = NA_character_)annotationType(property = NA_character_, value = NA_character_)
property |
'character(1)' or 'NA'. Annotation property name. |
value |
'character(1)' or 'NA'. Annotation value. |
An S7 class.
An S7 object of class 'annotationType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'character(1)' or 'NA'. Annotation property name.
'character(1)' or 'NA'. Annotation value.
'sampleType'
Groups stored data hierarchically by experiment, run, target, sample type, and curve type ('adp' or 'mdp'). Leaf labels contain the number of matching reactions.
asDendrogram(x, ...)asDendrogram(x, ...)
x |
An [rdmlType] object. |
... |
Reserved for method-specific extensions. |
A base R 'dendrogram' object. An empty RDML object returns an empty dendrogram; plotting it produces a warning.
Logical. Plot the dendrogram immediately? Defaults to 'TRUE'. Use 'FALSE' to build the object without opening a graphics device.
'summary()'
rdmlFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) rdml <- readRDML(rdmlFile, showProgress = FALSE) tree <- asDendrogram(rdml, plotDendrogram = FALSE) treerdmlFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) rdml <- readRDML(rdmlFile, showProgress = FALSE) tree <- asDendrogram(rdml, plotDendrogram = FALSE) tree
Creates one metadata row for every target-specific 'dataType' stored in an RDML object. This table can be inspected directly or supplied as 'request' to [getFData()].
asTable(x, ...)asTable(x, ...)
x |
An [rdmlType] object. |
... |
Named expressions defining additional columns. Expressions are evaluated once per 'dataType'; see **Custom columns** below. |
A keyed [data.table::data.table] with 'fdataName' followed by the selected built-in and custom columns. Positions use canonical plate labels such as 'A01'.
Character vector selecting built-in columns, or 'NULL' for all built-in columns. Available values are 'expId', 'runId', 'reactId', 'position', 'sample', 'target', 'targetDyeId', 'sampleType', 'adp', and 'mdp'.
Character template or expression used to create the unique 'fdataName' for each curve. Character templates use '{field}' placeholders, for example '"{position}_{target}"'.
Logical. Include experiments whose identifiers start with '.'? Defaults to 'FALSE'.
Logical. Convert 'NULL' results from custom expressions to 'NA'? Defaults to 'FALSE'.
Deprecated compatibility arguments for named lists of base and additional expressions. New code should use 'columns' and named expressions in '...'.
Expressions in '...' can use the scalar values 'expId', 'runId', 'reactId', 'position', 'sample', 'target', 'targetDyeId', 'sampleType', 'adp', and 'mdp'. They can also inspect the current 'experiment', 'run', 'react', and 'data' objects and the top-level 'samples', 'targets', 'dateMade', 'dateUpdated', 'id', 'experimenter', 'documentation', 'dye', and 'thermalCyclingConditions' collections.
Named custom columns may be referenced by 'namePattern' placeholders.
'getFData()', 'setFData()'
rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) meta <- asTable( rdml, columns = c("position", "sample", "target", "adp"), cq = data$cq, namePattern = "{position}_{target}" ) head(meta)rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) meta <- asTable( rdml, columns = c("position", "sample", "target", "adp"), cq = data$cq, namePattern = "{position}_{target}" ) head(meta)
Serializes standard RDML properties. Package-only extension fields are kept in memory but are not emitted as non-standard XML elements.
asXML(x, ...)asXML(x, ...)
x |
An [rdmlType] object. |
... |
Arguments passed to the method. |
Without 'fileName', a character scalar containing XML. With 'fileName', the serialized XML is returned invisibly after the file is written.
Optional output path. If omitted, return the complete XML document as a character scalar. A '.xml' path writes plain XML; other extensions, normally '.rdml', write a ZIP-based RDML archive.
Policy for package data that standard RDML XML cannot represent: '"warn"' (default), '"error"', or '"allow"'.
'writeRDML()'
rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) xml <- asXML(rdml, loss = "allow") substr(xml, 1L, 80L) output <- tempfile(fileext = ".xml") invisible(asXML(rdml, fileName = output, loss = "allow")) file.exists(output) unlink(output)rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) xml <- asXML(rdml, loss = "allow") substr(xml, 1L, 80L) output <- tempfile(fileext = ".xml") invisible(asXML(rdml, fileName = output, loss = "allow")) file.exists(output) unlink(output)
Create an RDML object from fluorescence and metadata tables
buildRDMLFromFData( fdata, description, fdataType = "adp", publisher = NULL, serialNumber = "1", ... )buildRDMLFromFData( fdata, description, fdataType = "adp", publisher = NULL, serialNumber = "1", ... )
fdata |
Fluorescence table accepted by 'setFData()'. |
description |
CamelCase metadata table accepted by 'setFData()'. |
fdataType |
'"adp"' or '"mdp"'. |
publisher |
Optional publisher/importer identifier. |
serialNumber |
Top-level serial number. |
... |
Additional arguments forwarded to 'buildRDMLImport()'. |
'rdmlType'.
'setFData', 'rdmlImportData'
rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") source <- readRDML(rdmlFile, showProgress = FALSE) description <- asTable(source) description <- description[seq_len(min(2L, nrow(description))), ] fluorescence <- getFData(source, request = description, dpType = "adp") rebuilt <- buildRDMLFromFData( fdata = fluorescence, description = description, fdataType = "adp", publisher = "RDML7 example" ) asTable(rebuilt)rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") source <- readRDML(rdmlFile, showProgress = FALSE) description <- asTable(source) description <- description[seq_len(min(2L, nrow(description))), ] fluorescence <- getFData(source, request = description, dpType = "adp") rebuilt <- buildRDMLFromFData( fdata = fluorescence, description = description, fdataType = "adp", publisher = "RDML7 example" ) asTable(rebuilt)
Build rdmlType from canonical importer data
buildRDMLImport(importData, loss = c("warn", "error", "allow"), ...)buildRDMLImport(importData, loss = c("warn", "error", "allow"), ...)
importData |
'rdmlImportData'. |
loss |
How declared lossy conversions are handled: '"warn"', '"error"', or '"allow"'. |
... |
Additional arguments forwarded to 'setFData()'. |
'rdmlType'.
'readRDML', 'rdmlImportData'
rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") source <- readRDML(rdmlFile, showProgress = FALSE) description <- asTable(source) description <- description[seq_len(min(2L, nrow(description))), ] fluorescence <- getFData(source, request = description, dpType = "adp") series <- newRDMLImportSeries("adp", fluorescence, description) importData <- newRDMLImportData( series = list(series), publisher = "RDML7 example", format = "rdml" ) imported <- buildRDMLImport(importData, loss = "allow") asTable(imported)rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") source <- readRDML(rdmlFile, showProgress = FALSE) description <- asTable(source) description <- description[seq_len(min(2L, nrow(description))), ] fluorescence <- getFData(source, request = description, dpType = "adp") series <- newRDMLImportSeries("adp", fluorescence, description) importData <- newRDMLImportData( series = list(series), publisher = "RDML7 example", format = "rdml" ) imported <- buildRDMLImport(importData, loss = "allow") asTable(imported)
Description of reverse-transcription/cDNA-synthesis conditions. Inherits from 'rdmlBaseType'.
cdnaSynthesisMethodType( enzyme = NA_character_, primingMethod = NA, dnaseTreatment = NA, thermalCyclingConditions = NA )cdnaSynthesisMethodType( enzyme = NA_character_, primingMethod = NA, dnaseTreatment = NA, thermalCyclingConditions = NA )
enzyme |
'character(1)' or 'NA'. Reverse-transcriptase/enzyme description. |
primingMethod |
'primingMethodType' or 'NA'. Priming strategy. |
dnaseTreatment |
'logical(1)' or 'NA'. Whether DNase treatment was performed. |
thermalCyclingConditions |
'idReferenceType' or 'NA'. Reference to the thermal program used for cDNA synthesis. |
An S7 class.
An S7 object of class 'cdnaSynthesisMethodType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'character(1)' or 'NA'. Reverse-transcriptase/enzyme description.
'primingMethodType' or 'NA'. Priming strategy.
'logical(1)' or 'NA'. Whether DNase treatment was performed.
'idReferenceType' or 'NA'. Reference to the thermal program used for cDNA synthesis.
'primingMethodType', 'thermalCyclingConditionsType', 'sampleType'
Commercial assay identification. Inherits from 'rdmlBaseType'.
commercialAssayType(company = character(0), orderNumber = character(0))commercialAssayType(company = character(0), orderNumber = character(0))
company |
'character(1)'. Manufacturer/company. |
orderNumber |
'character(1)'. Catalogue or order number. |
An S7 class.
An S7 object of class 'commercialAssayType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'character(1)'. Manufacturer/company.
'character(1)'. Catalogue or order number.
'targetType'
Method used to determine Cq values.
cqDetectionMethodType(value = "")cqDetectionMethodType(value = "")
value |
'character(1)'. Enumeration value; must be one of the allowed values listed below. |
An S7 class.
An S7 object of class 'cqDetectionMethodType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
Allowed value.
Allowed value.
Allowed value.
Allowed value.
'runType', 'dataType'
Software used by the instrument to collect qPCR data. Inherits from 'rdmlBaseType'.
dataCollectionSoftwareType(name = character(0), version = character(0))dataCollectionSoftwareType(name = character(0), version = character(0))
name |
'character(1)'. Software name. |
version |
'character(1)'. Software version. |
An S7 class.
An S7 object of class 'dataCollectionSoftwareType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'character(1)'. Software name.
'character(1)'. Software version.
'runType'
Target-specific qPCR result data for one reaction. It stores calculated results and optional amplification and melting fluorescence curves. Inherits from 'rdmlBaseType'.
dataType( targetId = NA, cq = NA_real_, N0 = NA_real_, ampEffMet = NA_character_, ampEff = NA_real_, ampEffSE = NA_real_, corrF = NA_real_, corrP = NA_real_, meltTemp = NA_real_, excl = NA_character_, note = NA_character_, adp = NA, mdp = NA, endPt = NA_real_, bgFluor = NA_real_, bgFluorSlp = NA_real_, quantFluor = NA_real_ )dataType( targetId = NA, cq = NA_real_, N0 = NA_real_, ampEffMet = NA_character_, ampEff = NA_real_, ampEffSE = NA_real_, corrF = NA_real_, corrP = NA_real_, meltTemp = NA_real_, excl = NA_character_, note = NA_character_, adp = NA, mdp = NA, endPt = NA_real_, bgFluor = NA_real_, bgFluorSlp = NA_real_, quantFluor = NA_real_ )
targetId |
'idReferenceType'. Reference to the target. |
cq |
'numeric(1)' or 'NA'. Quantification cycle (Cq). |
N0 |
'numeric(1)' or 'NA'. Estimated initial template quantity. |
ampEffMet |
'character(1)' or 'NA'. Amplification-efficiency method. |
ampEff |
'numeric(1)' or 'NA'. Amplification efficiency. |
ampEffSE |
'numeric(1)' or 'NA'. Standard error of amplification efficiency. |
corrF |
'numeric(1)' or 'NA'. Fluorescence correction factor. |
corrP |
'numeric(1)' or 'NA'. Correction parameter. |
meltTemp |
Numeric vector or 'NA'. One or more melting temperatures. |
excl |
'character(1)' or 'NA'. Exclusion information. |
note |
'character(1)' or 'NA'. Free-text note. |
adp |
'dpAmpCurveType' or 'NA'. Amplification curve. |
mdp |
'dpMeltingCurveType' or 'NA'. Melting curve. |
endPt |
'numeric(1)' or 'NA'. End-point fluorescence/result. |
bgFluor |
'numeric(1)' or 'NA'. Background fluorescence. |
bgFluorSlp |
'numeric(1)' or 'NA'. Background-fluorescence slope. |
quantFluor |
'numeric(1)' or 'NA'. Quantification fluorescence. |
An S7 class.
An S7 object of class 'dataType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idReferenceType'. Reference to the target.
'numeric(1)' or 'NA'. Quantification cycle (Cq).
'numeric(1)' or 'NA'. Estimated initial template quantity.
'character(1)' or 'NA'. Amplification-efficiency method.
'numeric(1)' or 'NA'. Amplification efficiency.
'numeric(1)' or 'NA'. Standard error of amplification efficiency.
'numeric(1)' or 'NA'. Fluorescence correction factor.
'numeric(1)' or 'NA'. Correction parameter.
Numeric vector or 'NA'. One or more melting temperatures.
'character(1)' or 'NA'. Exclusion information.
'character(1)' or 'NA'. Free-text note.
'dpAmpCurveType' or 'NA'. Amplification curve.
'dpMeltingCurveType' or 'NA'. Melting curve.
'numeric(1)' or 'NA'. End-point fluorescence/result.
'numeric(1)' or 'NA'. Background fluorescence.
'numeric(1)' or 'NA'. Background-fluorescence slope.
'numeric(1)' or 'NA'. Quantification fluorescence.
'reactType', 'targetType', 'dpAmpCurveType', 'dpMeltingCurveType'
Detect the format handler selected for a path
detectRDMLFormat(fileName, operation = c("read", "write"))detectRDMLFormat(fileName, operation = c("read", "write"))
fileName |
File path. |
operation |
'"read"' or '"write"'. |
Registered format name.
'listRDMLFormats', 'readRDML', 'writeRDML'
amplificationFile <- system.file( "extdata", "lc96_bACTXY.rdml", package = "RDML7" ) meltingFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) detectRDMLFormat(amplificationFile, operation = "read") detectRDMLFormat(meltingFile, operation = "write")amplificationFile <- system.file( "extdata", "lc96_bACTXY.rdml", package = "RDML7" ) meltingFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) detectRDMLFormat(amplificationFile, operation = "read") detectRDMLFormat(meltingFile, operation = "write")
Reusable documentation text. Use this type when the same description or note is referenced by several samples, targets, runs, or experiments. Inherits from 'rdmlBaseType'.
documentationType(id = NULL, text = NA_character_)documentationType(id = NULL, text = NA_character_)
id |
'idType'. Unique documentation identifier. |
text |
'character(1)' or 'NA'. Documentation text. |
An S7 class.
An S7 object of class 'documentationType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idType'. Unique documentation identifier.
'character(1)' or 'NA'. Documentation text.
'rdmlType', 'idReferenceType'
Amplification fluorescence curve. Inherits from 'rdmlBaseType'.
dpAmpCurveType(fpoints = NULL)dpAmpCurveType(fpoints = NULL)
fpoints |
'data.table' containing 'cyc' and 'fluor', with optional per-cycle 'tmp'. |
An S7 class.
An S7 object of class 'dpAmpCurveType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'data.table' containing 'cyc' and 'fluor', with optional per-cycle 'tmp'.
'dataType', 'getFData', 'setFData'
Melting fluorescence curve. Inherits from 'rdmlBaseType'.
dpMeltingCurveType(fpoints = NULL)dpMeltingCurveType(fpoints = NULL)
fpoints |
'data.table' containing 'tmp' and 'fluor'. |
An S7 class.
An S7 object of class 'dpMeltingCurveType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'data.table' containing 'tmp' and 'fluor'.
'dataType', 'getFData', 'setFData'
Fluorescence chemistry used by a dye or detection system.
dyeChemistryType(value = "")dyeChemistryType(value = "")
value |
'character(1)'. Enumeration value; must be one of the allowed values listed below. |
An S7 class.
An S7 object of class 'dyeChemistryType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
Allowed value.
Allowed value.
Allowed value.
Allowed value.
Allowed value.
Allowed value.
Allowed value.
'dyeType'
Description of a fluorescent dye or reporter used to detect a target. Inherits from 'rdmlBaseType'.
dyeType(id = NULL, description = NA_character_, dyeChemistry = NA)dyeType(id = NULL, description = NA_character_, dyeChemistry = NA)
id |
'idType'. Unique dye identifier. |
description |
'character(1)' or 'NA'. Human-readable dye description. |
dyeChemistry |
'dyeChemistryType' or 'NA'. Detection chemistry. |
An S7 class.
An S7 object of class 'dyeType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idType'. Unique dye identifier.
'character(1)' or 'NA'. Human-readable dye description.
'dyeChemistryType' or 'NA'. Detection chemistry.
'dyeChemistryType', 'targetType'
Starts the optional Shiny-based editor when its GUI dependencies are installed.
editRDML()editRDML()
Result of launching the application, invisibly where applicable.
'readRDML', 'writeRDML'
Contact details of an experimenter associated with an RDML document or thermal cycling conditions. Inherits from 'rdmlBaseType'.
experimenterType( id = NULL, firstName = character(0), lastName = character(0), email = NA_character_, labName = NA_character_, labAddress = NA_character_ )experimenterType( id = NULL, firstName = character(0), lastName = character(0), email = NA_character_, labName = NA_character_, labAddress = NA_character_ )
id |
'idType'. Unique experimenter identifier. |
firstName |
'character(1)'. First name. |
lastName |
'character(1)'. Last name. |
email |
'character(1)' or 'NA'. E-mail address. |
labName |
'character(1)' or 'NA'. Laboratory or organization name. |
labAddress |
'character(1)' or 'NA'. Laboratory postal address. |
An S7 class.
An S7 object of class 'experimenterType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idType'. Unique experimenter identifier.
'character(1)'. First name.
'character(1)'. Last name.
'character(1)' or 'NA'. E-mail address.
'character(1)' or 'NA'. Laboratory or organization name.
'character(1)' or 'NA'. Laboratory postal address.
'rdmlType', 'thermalCyclingConditionsType'
A qPCR experiment. One experiment may contain several instrument runs. Inherits from 'rdmlBaseType'.
experimentType( id = NULL, description = NA_character_, documentation = NA, run = NA )experimentType( id = NULL, description = NA_character_, documentation = NA, run = NA )
id |
'idType'. Unique experiment identifier. |
description |
'character(1)' or 'NA'. Experiment description. |
documentation |
List of 'idReferenceType' objects or 'NA'. Documentation references. |
run |
Run-id-keyed list of 'runType' objects or 'NA'. |
An S7 class.
An S7 object of class 'experimentType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idType'. Unique experiment identifier.
'character(1)' or 'NA'. Experiment description.
List of 'idReferenceType' objects or 'NA'. Documentation references.
Run-id-keyed list of 'runType' objects or 'NA'.
'runType', 'rdmlType'
Extracts amplification or melting curves either from one [dataType] object or from a selection of curves in an [rdmlType] object.
getFData(x, ...)getFData(x, ...)
x |
A [dataType] containing one target-specific result, or an [rdmlType] containing complete experiments. |
... |
Reserved for method-specific extensions. |
A [data.table::data.table]. See **Output columns** for the shape returned by each method and argument combination.
Character scalar accepted by both methods: '"adp"' for amplification data or '"mdp"' for melting data. Defaults to '"adp"'.
For an 'rdmlType', a data frame normally produced by [asTable()]. It must contain 'fdataName', 'expId', 'runId', 'reactId', and 'target'. Additional columns are retained in long output. If omitted, 'asTable(x)' selects every stored target result.
For an 'rdmlType', return one row per measured point with request metadata repeated ('TRUE'), or a wide table with one fluorescence column per 'fdataName' ('FALSE', the default).
In long form, retain requested metadata rows that have no curve of the selected 'dpType', filling point columns with 'NA'? Defaults to 'FALSE'. It has no effect on wide output.
For a single 'dataType', amplification output has 'cyc', optional 'tmp', and 'fluor'; melting output has 'tmp' and 'fluor'. A missing curve returns an empty table with the appropriate coordinate and 'fluor' columns.
For an 'rdmlType', wide amplification output begins with 'cyc' and may include 'tmp' when temperature is unambiguous for every cycle. Wide melting output begins with 'tmp'. Remaining columns are named by 'fdataName' in the order requested. Long output joins the request columns to 'cyc'/'tmp' and 'fluor'.
Duplicate 'fdataName' values are replaced by unique names constructed from 'expId', 'runId', 'reactId', and 'target', with a warning.
'asTable()', 'setFData()'
rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) meta <- asTable( rdml, columns = c( "expId", "runId", "reactId", "position", "sample", "target", "adp" ) ) # All amplification curves as one wide table. amplification <- getFData(rdml, dpType = "adp") # Selected curves with metadata repeated for every cycle. selected <- getFData( rdml, request = meta[seq_len(min(2L, nrow(meta))), ], dpType = "adp", longTable = TRUE ) # Keep metadata even when melting data are absent. melting <- getFData( rdml, request = meta, dpType = "mdp", longTable = TRUE, includeMissing = TRUE )rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) meta <- asTable( rdml, columns = c( "expId", "runId", "reactId", "position", "sample", "target", "adp" ) ) # All amplification curves as one wide table. amplification <- getFData(rdml, dpType = "adp") # Selected curves with metadata repeated for every cycle. selected <- getFData( rdml, request = meta[seq_len(min(2L, nrow(meta))), ], dpType = "adp", longTable = TRUE ) # Keep metadata even when melting data are absent. melting <- getFData( rdml, request = meta, dpType = "mdp", longTable = TRUE, includeMissing = TRUE )
Temperature-gradient step. Inherits from 'temperatureBaseType'.
gradientType( duration = integer(0), temperatureChange = NA_real_, durationChange = NA_integer_, measure = NA, ramp = NA_real_, highTemperature = integer(0), lowTemperature = integer(0) )gradientType( duration = integer(0), temperatureChange = NA_real_, durationChange = NA_integer_, measure = NA, ramp = NA_real_, highTemperature = integer(0), lowTemperature = integer(0) )
duration |
Positive integer. Step duration. |
temperatureChange |
'numeric(1)' or 'NA'. Temperature increment/decrement per cycle. |
durationChange |
'integer(1)' or 'NA'. Duration increment/decrement per cycle. |
measure |
'measureType' or 'NA'. Fluorescence measurement mode. |
ramp |
'numeric(1)' or 'NA'. Ramp rate. |
highTemperature |
'numeric(1)'. High end of the gradient. |
lowTemperature |
'numeric(1)'. Low end of the gradient. |
An S7 class.
An S7 object of class 'gradientType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'numeric(1)'. High end of the gradient.
'numeric(1)'. Low end of the gradient.
'temperatureBaseType', 'stepType'
Extends 'idType' for references between RDML elements, for example sample, target, dye, documentation, and thermal-program references.
idReferenceType(id = character(0))idReferenceType(id = character(0))
id |
Character identifier of the referenced RDML element. |
An S7 object of class 'idReferenceType' representing a reference from one RDML schema element to another identified element.
'idType', 'validateRDML'
Stores one character identifier used as a schema key. 'as.character()' extracts the identifier and 'print()' displays it directly.
idType(id = character(0))idType(id = character(0))
id |
Character identifier. |
An S7 object of class 'idType' representing an identifier used as a key in the RDML object hierarchy.
'idReferenceType', 'rdmlKeyedList', 'rdmlType'
Test whether an RDML object has semantic errors
isValidRDML(x, level = "full")isValidRDML(x, level = "full")
x |
'rdmlType'. |
level |
Validation level passed to 'validateRDML()'. |
'TRUE' if no validation issue has severity '"error"'.
'validateRDML'
rdmlFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) rdml <- readRDML(rdmlFile, showProgress = FALSE) isValidRDML(rdml, level = "full")rdmlFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) rdml <- readRDML(rdmlFile, showProgress = FALSE) isValidRDML(rdml, level = "full")
Labeling convention used for plate rows or columns.
labelFormatType(value = "")labelFormatType(value = "")
value |
'character(1)'. Enumeration value; must be one of the allowed values listed below. |
An S7 class.
An S7 object of class 'labelFormatType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
Allowed value.
Allowed value.
Allowed value.
'pcrFormatType'
These functions preserve public names, dotted argument names, and (where applicable) dotted output-column names used by previous RDML releases. New code should use the canonical camelCase API.
AsTable( x, .default = list(exp.id = .rdmlIdChr(experiment$id), run.id = .rdmlIdChr(run$id), react.id = .rdmlIdChr(react$id), position = .rdmlReactPosition(react, run$pcrFormat), sample = .rdmlIdChr(react$sample), target = .rdmlIdChr(data$targetId), target.dyeId = .rdmlTargetDye(target, .rdmlIdChr(data$targetId)), sample.type = .rdmlSampleType(sample[[.rdmlIdChr(react$sample)]], .rdmlIdChr(data$targetId)), adp = .rdmlPresent(data$adp), mdp = .rdmlPresent(data$mdp)), name.pattern = paste(.rdmlIdChr(experiment$id), .rdmlIdChr(run$id), .rdmlReactPosition(react, run$pcrFormat), .rdmlIdChr(react$sample), .rdmlSampleType(sample[[.rdmlIdChr(react$sample)]], .rdmlIdChr(data$targetId)), .rdmlIdChr(data$targetId), sep = "_"), add.columns = list(), treat.null.as.na = FALSE, include.hidden = FALSE, ... ) GetFData(x, request, dp.type = "adp", long.table = FALSE, ...) SetFData( x, fdata, description, fdata.type = "adp", conflict = c("error", "keep", "replace"), ... ) AsDendrogram(x, plot.dendrogram = TRUE, ...) MergeRDMLs(to.merge, data.conflict = c("incoming", "base", "error")) rdmlEdit(...)AsTable( x, .default = list(exp.id = .rdmlIdChr(experiment$id), run.id = .rdmlIdChr(run$id), react.id = .rdmlIdChr(react$id), position = .rdmlReactPosition(react, run$pcrFormat), sample = .rdmlIdChr(react$sample), target = .rdmlIdChr(data$targetId), target.dyeId = .rdmlTargetDye(target, .rdmlIdChr(data$targetId)), sample.type = .rdmlSampleType(sample[[.rdmlIdChr(react$sample)]], .rdmlIdChr(data$targetId)), adp = .rdmlPresent(data$adp), mdp = .rdmlPresent(data$mdp)), name.pattern = paste(.rdmlIdChr(experiment$id), .rdmlIdChr(run$id), .rdmlReactPosition(react, run$pcrFormat), .rdmlIdChr(react$sample), .rdmlSampleType(sample[[.rdmlIdChr(react$sample)]], .rdmlIdChr(data$targetId)), .rdmlIdChr(data$targetId), sep = "_"), add.columns = list(), treat.null.as.na = FALSE, include.hidden = FALSE, ... ) GetFData(x, request, dp.type = "adp", long.table = FALSE, ...) SetFData( x, fdata, description, fdata.type = "adp", conflict = c("error", "keep", "replace"), ... ) AsDendrogram(x, plot.dendrogram = TRUE, ...) MergeRDMLs(to.merge, data.conflict = c("incoming", "base", "error")) rdmlEdit(...)
x |
An [rdmlType] object, or a [dataType] for 'GetFData()'. |
.default |
Named list of expressions defining the base 'AsTable()' output columns. See [asTable()] for values available during evaluation. |
name.pattern |
Expression defining one legacy 'fdata.name' per target result. |
add.columns |
Named list of additional 'AsTable()' expressions. |
treat.null.as.na |
Logical. Convert 'NULL' expression results to 'NA'. |
|
Logical. Include experiment identifiers beginning with '.'. |
|
... |
Additional arguments passed unchanged to the canonical API. |
request |
Legacy metadata table describing curves to extract. Required columns are 'fdata.name', 'exp.id', 'run.id', 'react.id', and 'target'. |
dp.type |
Curve type: '"adp"' or '"mdp"'. |
long.table |
Logical. Return long rather than wide fluorescence data. |
fdata |
Wide fluorescence matrix or table; the first column is 'cyc' for '"adp"' or 'tmp' for '"mdp"'. |
description |
Legacy metadata table describing 'fdata' columns. |
fdata.type |
Curve type: '"adp"' or '"mdp"'. |
conflict |
Metadata conflict policy: '"error"', '"keep"', or '"replace"'. |
plot.dendrogram |
Logical. Plot the generated dendrogram. |
to.merge |
Non-empty list of [rdmlType] objects. |
data.conflict |
Duplicate target-data policy: '"incoming"', '"base"', or '"error"'. |
| Legacy | Canonical |
| `AsTable()` | `asTable()` |
| `GetFData()` | `getFData()` |
| `SetFData()` | `setFData()` |
| `AsDendrogram()` | `asDendrogram()` |
| `MergeRDMLs()` | `mergeRDMLs()` |
| `rdmlEdit()` | `editRDML()` |
Legacy 'AsTable()' returns names such as 'fdata.name', 'exp.id', 'run.id', 'react.id', 'sample.type', and 'target.dyeId'; 'asTable()' uses 'fdataName', 'expId', 'runId', 'reactId', 'sampleType', and 'targetDyeId'.
'AsTable()' and 'GetFData()' return [data.table::data.table] objects with legacy dotted column names where applicable. 'SetFData()' and 'MergeRDMLs()' return [rdmlType] objects. 'AsDendrogram()' returns a 'dendrogram'. 'rdmlEdit()' launches the editor like [editRDML()].
[asTable()], [getFData()], [setFData()], [asDendrogram()], [mergeRDMLs()], [editRDML()], 'RDML7-package'
amplificationFile <- system.file( "extdata", "lc96_bACTXY.rdml", package = "RDML7" ) meltingFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) amplification <- readRDML(amplificationFile, showProgress = FALSE) melting <- readRDML(meltingFile, showProgress = FALSE) legacyMeta <- AsTable(amplification) legacyCurves <- GetFData( amplification, request = legacyMeta[seq_len(min(2L, nrow(legacyMeta))), ], dp.type = "adp" ) copied <- SetFData( rdmlType(), legacyCurves, legacyMeta[seq_len(min(2L, nrow(legacyMeta))), ], fdata.type = "adp" ) tree <- AsDendrogram(melting, plot.dendrogram = FALSE) merged <- MergeRDMLs(list(amplification, melting), data.conflict = "base")amplificationFile <- system.file( "extdata", "lc96_bACTXY.rdml", package = "RDML7" ) meltingFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) amplification <- readRDML(amplificationFile, showProgress = FALSE) melting <- readRDML(meltingFile, showProgress = FALSE) legacyMeta <- AsTable(amplification) legacyCurves <- GetFData( amplification, request = legacyMeta[seq_len(min(2L, nrow(legacyMeta))), ], dp.type = "adp" ) copied <- SetFData( rdmlType(), legacyCurves, legacyMeta[seq_len(min(2L, nrow(legacyMeta))), ], fdata.type = "adp" ) tree <- AsDendrogram(melting, plot.dendrogram = FALSE) merged <- MergeRDMLs(list(amplification, melting), data.conflict = "base")
Marker step indicating that the instrument lid is opened. This class has no additional properties. Inherits from 'rdmlBaseType'.
lidOpenType()lidOpenType()
An S7 class.
An S7 object of class 'lidOpenType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
This class does not define additional properties.
'stepType'
Formats are returned in registration order. For automatic dispatch, the first format supporting a given extension and operation is the default.
listRDMLFormats()listRDMLFormats()
Data frame with format name, extensions, and reader/writer availability.
'registerRDMLFormat', 'detectRDMLFormat'
The module defines 'rdmlModule()' (legacy 'rdml_module()' is also accepted) and returns one or more specifications accepted by 'registerRDMLFormat()'. Each specification may contain only 'name', 'extensions', 'reader', and 'writer'.
loadRDMLModule(path)loadRDMLModule(path)
path |
Module R file. |
Registered format names invisibly.
'registerRDMLFormat', 'listRDMLFormats'
Loop instruction in a thermal-cycling program. Inherits from 'rdmlBaseType'.
loopType(goto = integer(0), `repeat` = integer(0))loopType(goto = integer(0), `repeat` = integer(0))
goto |
Positive integer. Number of the step to return to. |
repeat |
Positive integer. Number of loop repetitions. |
An S7 class.
An S7 object of class 'loopType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
Positive integer. Number of the step to return to.
Positive integer. Number of loop repetitions.
'stepType', 'thermalCyclingConditionsType'
Fluorescence measurement mode used in a thermal-cycling step.
measureType(value = "")measureType(value = "")
value |
'character(1)'. Enumeration value; must be one of the allowed values listed below. |
An S7 class.
An S7 object of class 'measureType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
Allowed value.
Allowed value.
'temperatureBaseType'
Merge two or more [rdmlType] objects recursively.
mergeRDMLs(..., dataConflict = c("incoming", "base", "error"))mergeRDMLs(..., dataConflict = c("incoming", "base", "error"))
... |
Two or more 'rdmlType' objects, or a single non-empty list of 'rdmlType' objects. |
dataConflict |
Conflict policy for duplicate target data: '"incoming"', '"base"', or '"error"'. |
The **first** RDML object is used as the metadata base. Every subsequent object is merged into the accumulated result from left to right:
'mergeRDMLs(rdml1, rdml2, rdml3)' is therefore equivalent to 'merge(merge(rdml1, rdml2), rdml3)'.
The function accepts either RDML objects as separate arguments:
'mergeRDMLs(rdml1, rdml2, rdml3)'
or a single list containing RDML objects:
'mergeRDMLs(list(rdml1, rdml2, rdml3))'.
Top-level keyed metadata ('experimenter', 'documentation', 'dye', 'sample', 'target', and 'thermalCyclingConditions') keep the definition from the accumulated base object when the same key is present in both objects.
'dataConflict' applies to duplicate target data within the same reaction:
- '"incoming"': replace base data with data from the current incoming object. With multiple objects, later objects therefore have higher priority. - '"base"': preserve data already present in the accumulated base object. With multiple objects, earlier objects therefore have higher priority. - '"error"': stop at the first duplicate data target.
Merged 'rdmlType'.
[readRDML()], [writeRDML()]
amplificationFile <- system.file( "extdata", "lc96_bACTXY.rdml", package = "RDML7" ) meltingFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) amplification <- readRDML(amplificationFile, showProgress = FALSE) melting <- readRDML(meltingFile, showProgress = FALSE) # Separate arguments merged <- mergeRDMLs( amplification, melting, dataConflict = "error" ) # A list is also accepted mergedFromList <- mergeRDMLs( list(amplification, melting), dataConflict = "base" )amplificationFile <- system.file( "extdata", "lc96_bACTXY.rdml", package = "RDML7" ) meltingFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) amplification <- readRDML(amplificationFile, showProgress = FALSE) melting <- readRDML(meltingFile, showProgress = FALSE) # Separate arguments merged <- mergeRDMLs( amplification, melting, dataConflict = "error" ) # A list is also accepted mergedFromList <- mergeRDMLs( list(amplification, melting), dataConflict = "base" )
S7 classes representing reusable metadata elements in an RDML document.
Experimenter/contact metadata: 'id', 'firstName', 'lastName', optional 'email', 'labName', and 'labAddress'.
Reusable documentation identified by 'id' and optional free text.
Enumeration describing fluorescence chemistry.
Dye metadata: 'id', optional 'description', and optional 'dyeChemistry'.
External cross-reference with optional 'name' and 'id'.
Annotation 'property' / 'value' pair.
Top-level publisher identifier containing 'publisher', 'serialNumber', and optional 'MD5Hash'.
'idType', 'idReferenceType', 'rdmlType'
Create canonical importer data
newRDMLImportData( series, publisher = NA_character_, serialNumber = "1", format = NA_character_, preserveReactIds = FALSE, metadata = list(), losses = list() )newRDMLImportData( series, publisher = NA_character_, serialNumber = "1", format = NA_character_, preserveReactIds = FALSE, metadata = list(), losses = list() )
series |
List of 'rdmlImportSeries' objects. |
publisher |
Optional source/device publisher. |
serialNumber |
Source/device serial identifier. |
format |
Source-format identifier. |
preserveReactIds |
Preserve supplied reaction ids literally. |
metadata |
Additional importer metadata. |
losses |
List of loss records. |
'rdmlImportData'.
[newRDMLImportSeries()], [buildRDMLImport()]
rdmlFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) rdml <- readRDML(rdmlFile, showProgress = FALSE) description <- asTable(rdml) description <- description[description$mdp %in% TRUE, ] description <- description[seq_len(min(2L, nrow(description))), ] fluorescence <- getFData(rdml, request = description, dpType = "mdp") series <- newRDMLImportSeries("mdp", fluorescence, description) importData <- newRDMLImportData( series = list(series), publisher = "Bio-Rad", serialNumber = "example", format = "rdml", metadata = list(source = basename(rdmlFile)) ) names(importData)rdmlFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) rdml <- readRDML(rdmlFile, showProgress = FALSE) description <- asTable(rdml) description <- description[description$mdp %in% TRUE, ] description <- description[seq_len(min(2L, nrow(description))), ] fluorescence <- getFData(rdml, request = description, dpType = "mdp") series <- newRDMLImportSeries("mdp", fluorescence, description) importData <- newRDMLImportData( series = list(series), publisher = "Bio-Rad", serialNumber = "example", format = "rdml", metadata = list(source = basename(rdmlFile)) ) names(importData)
Create an importer fluorescence-series object
newRDMLImportSeries(fdataType, fdata, description)newRDMLImportSeries(fdataType, fdata, description)
fdataType |
'"adp"' or '"mdp"'. |
fdata |
Wide fluorescence table accepted by 'setFData()'. |
description |
Description table accepted by 'setFData()'. |
'rdmlImportSeries'.
[newRDMLImportData()], [buildRDMLImport()]
rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) description <- asTable(rdml) description <- description[seq_len(min(2L, nrow(description))), ] fluorescence <- getFData(rdml, request = description, dpType = "adp") series <- newRDMLImportSeries( fdataType = "adp", fdata = fluorescence, description = description ) series$fdataTyperdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) description <- asTable(rdml) description <- description[seq_len(min(2L, nrow(description))), ] fluorescence <- getFData(rdml, request = description, dpType = "adp") series <- newRDMLImportSeries( fdataType = "adp", fdata = fluorescence, description = description ) series$fdataType
Importers/exporters use these records for information that cannot be represented exactly in the destination model.
newRDMLLossRecord(code, message, path = NA_character_, details = list())newRDMLLossRecord(code, message, path = NA_character_, details = list())
code |
Machine-readable loss code. |
message |
Human-readable description. |
path |
Optional RDML object path. |
details |
Additional structured metadata. |
An 'newRDMLLossRecord'.
'readRDML', 'writeRDML', 'rdmlImportData'
rdmlFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) loss <- newRDMLLossRecord( code = "unsupportedMetadata", message = "Vendor metadata is retained only in the importer record", path = rdmlFile, details = list(format = detectRDMLFormat(rdmlFile, "read")) ) lossrdmlFile <- system.file( "extdata", "BioRad_qPCR_melt.rdml", package = "RDML7" ) loss <- newRDMLLossRecord( code = "unsupportedMetadata", message = "Vendor metadata is retained only in the importer record", path = rdmlFile, details = list(format = detectRDMLFormat(rdmlFile, "read")) ) loss
Nucleic-acid type of the template material.
nucleotideType(value = "")nucleotideType(value = "")
value |
'character(1)'. Enumeration value; must be one of the allowed values listed below. |
An S7 class.
An S7 object of class 'nucleotideType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
Allowed value.
Allowed value.
Allowed value.
Allowed value.
'templateQuantityType'
Oligonucleotide sequence used for a primer, probe, or amplicon definition. Inherits from 'rdmlBaseType'.
oligoType( threePrimeTag = NA_character_, fivePrimeTag = NA_character_, sequence = character(0) )oligoType( threePrimeTag = NA_character_, fivePrimeTag = NA_character_, sequence = character(0) )
threePrimeTag |
'character(1)' or 'NA'. Optional 3-prime modification/tag. |
fivePrimeTag |
'character(1)' or 'NA'. Optional 5-prime modification/tag. |
sequence |
'character(1)'. Nucleotide sequence. |
An S7 class.
An S7 object of class 'oligoType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'character(1)' or 'NA'. Optional 3-prime modification/tag.
'character(1)' or 'NA'. Optional 5-prime modification/tag.
'character(1)'. Nucleotide sequence.
'sequencesType'
Target-specific digital-PCR partition result data. Inherits from 'rdmlBaseType'.
partitionDataType( targetId = NA, excluded = NA_character_, note = NA_character_, pos = integer(0), neg = integer(0), undef = NA_integer_, excl = NA_integer_, conc = NA_real_ )partitionDataType( targetId = NA, excluded = NA_character_, note = NA_character_, pos = integer(0), neg = integer(0), undef = NA_integer_, excl = NA_integer_, conc = NA_real_ )
targetId |
'idReferenceType'. Reference to the target. |
excluded |
'character(1)' or 'NA'. Exclusion information. |
note |
'character(1)' or 'NA'. Note. |
pos |
Positive integer. Positive partitions. |
neg |
Positive integer. Negative partitions. |
undef |
Positive integer or 'NA'. Undefined partitions. |
excl |
Positive integer or 'NA'. Excluded partitions. |
conc |
'numeric(1)' or 'NA'. Calculated concentration. |
An S7 class.
An S7 object of class 'partitionDataType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idReferenceType'. Reference to the target.
'character(1)' or 'NA'. Exclusion information.
'character(1)' or 'NA'. Note.
Positive integer. Positive partitions.
Positive integer. Negative partitions.
Positive integer or 'NA'. Undefined partitions.
Positive integer or 'NA'. Excluded partitions.
'numeric(1)' or 'NA'. Calculated concentration.
'partitionsType', 'targetType'
Digital-PCR partition metadata and target-specific partition results. Inherits from 'rdmlBaseType'.
partitionsType(volume = integer(0), endPtTable = NA_character_, data = NA)partitionsType(volume = integer(0), endPtTable = NA_character_, data = NA)
volume |
'numeric(1)'. Partition volume. |
endPtTable |
'character(1)' or 'NA'. Optional endpoint-table representation/reference. |
data |
Target-keyed list of 'partitionDataType' objects or 'NA'. |
An S7 class.
An S7 object of class 'partitionsType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'numeric(1)'. Partition volume.
'character(1)' or 'NA'. Optional endpoint-table representation/reference.
Target-keyed list of 'partitionDataType' objects or 'NA'.
'partitionDataType', 'reactType'
Pause instruction at a specified temperature. Inherits from 'rdmlBaseType'.
pauseType(temperature = integer(0))pauseType(temperature = integer(0))
temperature |
'numeric(1)'. Pause temperature. |
An S7 class.
An S7 object of class 'pauseType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'numeric(1)'. Pause temperature.
'stepType'
PCR plate or reaction-layout dimensions and labeling conventions. Inherits from 'rdmlBaseType'.
pcrFormatType( rows = integer(0), columns = integer(0), rowLabel = NA, columnLabel = NA )pcrFormatType( rows = integer(0), columns = integer(0), rowLabel = NA, columnLabel = NA )
rows |
Positive integer. Number of rows. |
columns |
Positive integer. Number of columns. |
rowLabel |
'labelFormatType'. Row-label convention. |
columnLabel |
'labelFormatType'. Column-label convention. |
An S7 class.
An S7 object of class 'pcrFormatType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
Positive integer. Number of rows.
Positive integer. Number of columns.
'labelFormatType'. Row-label convention.
'labelFormatType'. Column-label convention.
'labelFormatType', 'runType'
Priming strategy used for cDNA synthesis.
primingMethodType(value = "")primingMethodType(value = "")
value |
'character(1)'. Enumeration value; must be one of the allowed values listed below. |
An S7 class.
An S7 object of class 'primingMethodType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
Allowed value.
Allowed value.
Allowed value.
Allowed value.
Allowed value.
'cdnaSynthesisMethodType'
Target-specific quantity assigned to a sample. Inherits from 'rdmlBaseType'.
quantityType(targetId = NA, value = integer(0), unit = quantityUnitType())quantityType(targetId = NA, value = integer(0), unit = quantityUnitType())
targetId |
'idReferenceType'. Reference to the target. |
value |
'numeric(1)'. Quantity value. |
unit |
'quantityUnitType'. Unit of the quantity. |
An S7 class.
An S7 object of class 'quantityType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idReferenceType'. Reference to the target.
'numeric(1)'. Quantity value.
'quantityUnitType'. Unit of the quantity.
'sampleType', 'quantityUnitType'
Unit used for a target-specific sample quantity.
quantityUnitType(value = "")quantityUnitType(value = "")
value |
'character(1)'. Enumeration value; must be one of the allowed values listed below. |
An S7 class.
An S7 object of class 'quantityUnitType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
copies.
fold value.
dilution.
nanograms.
nanomoles.
another unit.
'quantityType'
S7 classes for fluorescence curves, reactions, runs, experiments, plate layouts, digital-PCR partitions, and the top-level RDML document.
Amplification 'fpoints': 'cyc', optional 'tmp', and 'fluor'.
Melting 'fpoints': 'tmp' and 'fluor'.
Target-specific results and curves.
Digital-PCR partition data.
Reaction with sample reference and target-keyed data.
Software name/version.
Plate label enumeration.
Plate dimensions and label formats.
Cq-detection method enumeration.
Instrument run and reactions.
Experiment and runs.
Top-level RDML document.
S7 classes used to describe samples, quantities, targets, oligonucleotides, assays, and cDNA synthesis metadata.
'unkn', 'ntc', 'nac', 'std', 'ntp', 'nrt', 'pos', or 'opt'.
'cop', 'fold', 'dil', 'ng', 'nMol', or 'other'.
'oligo-dt', 'random', 'target-specific', 'oligo-dt and random', or 'other'.
'DNA', 'genomic DNA', 'cDNA', or 'RNA'.
'ref' or 'toi'.
Associates 'targetId' with a sample type.
Target-specific quantity: 'targetId', 'value', and 'unit'.
Enzyme, priming method, DNase treatment, and optional thermal-program reference.
Template concentration and nucleotide type.
Sample metadata, target-specific type/quantity, annotations, documentation, and cDNA synthesis information.
Oligonucleotide sequence and optional terminal tags.
Primers, probes, and optional amplicon sequence.
Commercial assay company and order number.
Target type, dye reference, amplification efficiency, optional sequences, and commercial assay metadata.
S7 types used to represent PCR and melting thermal programs.
'measureType' accepts 'real time' or 'meltcurve'.
Common duration, measurement, ramp, and change fields.
Fixed-temperature step.
Gradient step with high/low temperatures.
Loop control with 'goto' and 'repeat'.
Pause at a temperature.
Marker step indicating an open lid.
Numbered step containing one thermal action.
Named thermal program containing 'stepType' objects.
Publisher identifier for an RDML document. Inherits from 'rdmlBaseType'.
rdmlIdType( publisher = character(0), serialNumber = character(0), MD5Hash = NA_character_ )rdmlIdType( publisher = character(0), serialNumber = character(0), MD5Hash = NA_character_ )
publisher |
'character(1)'. Publisher/producer identifier. |
serialNumber |
'character(1)'. Serial number assigned by the publisher. |
MD5Hash |
'character(1)' or 'NA'. Optional MD5 hash. |
An S7 class.
An S7 object of class 'rdmlIdType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'character(1)'. Publisher/producer identifier.
'character(1)'. Serial number assigned by the publisher.
'character(1)' or 'NA'. Optional MD5 hash.
'rdmlType'
Decouples vendor parsing from construction of the nested RDML hierarchy. 'readRDML()' builds this representation centrally with 'buildRDMLImport()'.
rdmlImportData( series, publisher = NA_character_, serialNumber = "1", format = NA_character_, preserveReactIds = FALSE, metadata = list(), losses = list() )rdmlImportData( series, publisher = NA_character_, serialNumber = "1", format = NA_character_, preserveReactIds = FALSE, metadata = list(), losses = list() )
series |
List of 'rdmlImportSeries' objects. |
publisher |
Optional source/device publisher. |
serialNumber |
Source/device serial identifier. |
format |
Source-format identifier. |
preserveReactIds |
Preserve supplied well/reaction ids literally. |
metadata |
Additional importer metadata. |
losses |
List of 'newRDMLLossRecord()' objects. |
An S7 object of class 'rdmlImportData' containing normalized amplification and melting series together with source metadata and loss records, ready for construction of an RDML document.
'rdmlImportSeries', 'buildRDMLImport', 'registerRDMLFormat'
Intermediate representation used by table/vendor parsers.
rdmlImportSeries(fdataType = character(0), fdata = NULL, description = NULL)rdmlImportSeries(fdataType = character(0), fdata = NULL, description = NULL)
fdataType |
'"adp"' or '"mdp"'. |
fdata |
Wide fluorescence table accepted by 'setFData()'. |
description |
CamelCase description table accepted by 'setFData()'. |
An S7 object of class 'rdmlImportSeries' containing one normalized fluorescence series and its associated experiment, run, reaction, sample, and target metadata.
'rdmlImportData', 'buildRDMLImport'
Derives virtual element names from a property such as 'id' or 'targetId' and enables nested '$' / '[[' access without storing physical list names.
rdmlKeyedList(x = list(), key = "id")rdmlKeyedList(x = list(), key = "id")
x |
List of schema objects. |
key |
Property used as the virtual key. |
An 'rdmlKeyedList' S7 object.
'rdmlType', 'idType'
Top-level container representing one RDML document. Its structure mirrors the RDML schema and stores reusable metadata together with experiments and runs. Inherits from 'rdmlBaseType'.
rdmlType( dateMade = NA_character_, dateUpdated = NA_character_, id = NA, experimenter = NA, documentation = NA, dye = NA, sample = NA, target = NA, thermalCyclingConditions = NA, experiment = NA )rdmlType( dateMade = NA_character_, dateUpdated = NA_character_, id = NA, experimenter = NA, documentation = NA, dye = NA, sample = NA, target = NA, thermalCyclingConditions = NA, experiment = NA )
dateMade |
Date-time value or 'NA'. Document creation date. |
dateUpdated |
Date-time value or 'NA'. Last update date. |
id |
List of 'rdmlIdType' objects or 'NA'. Publisher identifiers. |
experimenter |
Experimenter-id-keyed list of 'experimenterType' objects or 'NA'. |
documentation |
Documentation-id-keyed list of 'documentationType' objects or 'NA'. |
dye |
Dye-id-keyed list of 'dyeType' objects or 'NA'. |
sample |
Sample-id-keyed list of 'sampleType' objects or 'NA'. |
target |
Target-id-keyed list of 'targetType' objects or 'NA'. |
thermalCyclingConditions |
Id-keyed list of 'thermalCyclingConditionsType' objects or 'NA'. |
experiment |
Experiment-id-keyed list of 'experimentType' objects or 'NA'. |
An S7 class.
An S7 object of class 'rdmlType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'character(1)'. RDML schema version represented by this object. Always '"1.3"' and read-only.
Date-time value or 'NA'. Document creation date.
Date-time value or 'NA'. Last update date.
List of 'rdmlIdType' objects or 'NA'. Publisher identifiers.
Experimenter-id-keyed list of 'experimenterType' objects or 'NA'.
Documentation-id-keyed list of 'documentationType' objects or 'NA'.
Dye-id-keyed list of 'dyeType' objects or 'NA'.
Sample-id-keyed list of 'sampleType' objects or 'NA'.
Target-id-keyed list of 'targetType' objects or 'NA'.
Id-keyed list of 'thermalCyclingConditionsType' objects or 'NA'.
Experiment-id-keyed list of 'experimentType' objects or 'NA'.
'readRDML', 'writeRDML', 'asTable', 'getFData', 'validateRDML'
Converts the schema-level reaction identifier to a human-readable plate position using the run PCR format. Conventional alphabetic-row positions always use two-digit columns (for example, 'A01', never 'A1').
reactPosition(react, pcrFormat = NULL)reactPosition(react, pcrFormat = NULL)
react |
A [reactType] object. |
pcrFormat |
A [pcrFormatType] object, or a missing value when the reaction identifier already contains the position. |
A character scalar containing the canonical reaction position.
One reaction/well within a run. It references a sample and stores target-specific qPCR or digital-PCR results. Inherits from 'rdmlBaseType'.
reactType(id = NULL, sample = NA, data = NA, partitions = NA)reactType(id = NULL, sample = NA, data = NA, partitions = NA)
id |
'idType'. Reaction identifier or well position. |
sample |
'idReferenceType'. Reference to the sample. |
data |
Target-keyed list of 'dataType' objects or 'NA'. |
partitions |
List of 'partitionsType' objects or 'NA'. |
An S7 class.
An S7 object of class 'reactType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idType'. Reaction identifier or well position.
'idReferenceType'. Reference to the sample.
Target-keyed list of 'dataType' objects or 'NA'.
List of 'partitionsType' objects or 'NA'.
'runType', 'sampleType', 'dataType', 'partitionsType'
Selects a reader from the runtime registry. Readers may return 'rdmlType' directly or 'rdmlImportData', which is built automatically.
readRDML( fileName, showProgress = TRUE, conditionsSep = NULL, cluster = NULL, format = "auto", loss = c("warn", "error", "allow"), ... )readRDML( fileName, showProgress = TRUE, conditionsSep = NULL, cluster = NULL, format = "auto", loss = c("warn", "error", "allow"), ... )
fileName |
Input file. |
showProgress |
Show importer progress. |
conditionsSep |
Optional Roche condition separator retained for compatibility. |
cluster |
Reserved for compatibility. |
format |
Registered name/alias/extension or '"auto"'. |
loss |
Loss policy: '"warn"', '"error"', or '"allow"'. |
... |
Format-specific arguments. RDES supports 'companionFile', 'expId', 'runId', and 'strict'. |
'rdmlType'.
'writeRDML', 'listRDMLFormats', 'validateRDML'
Register a named file format. Automatic dispatch uses the file extension. If several formats support the same extension and operation, the first registered matching format is used by default. Users can select another registered format explicitly with 'format = "name"'.
registerRDMLFormat( name, extensions = character(), reader = NULL, writer = NULL )registerRDMLFormat( name, extensions = character(), reader = NULL, writer = NULL )
name |
Unique format name used by 'format='. |
extensions |
Character vector of file extensions, with or without a leading dot. |
reader |
Reader function or 'NULL'. |
writer |
Writer function or 'NULL'. |
Registered format specification invisibly.
'loadRDMLModule', 'listRDMLFormats', 'readRDML'
rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") demoFile <- tempfile(fileext = ".rdmldemo") file.copy(rdmlFile, demoFile) registerRDMLFormat( name = "rdml-demo", extensions = "rdmldemo", reader = function(fileName, ...) { readRDML(fileName, format = "rdml", ...) } ) detectRDMLFormat(demoFile, "read") demo <- readRDML(demoFile, showProgress = FALSE) unregisterRDMLFormat("rdml-demo") unlink(demoFile)rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") demoFile <- tempfile(fileext = ".rdmldemo") file.copy(rdmlFile, demoFile) registerRDMLFormat( name = "rdml-demo", extensions = "rdmldemo", reader = function(fileName, ...) { readRDML(fileName, format = "rdml", ...) } ) detectRDMLFormat(demoFile, "read") demo <- readRDML(demoFile, showProgress = FALSE) unregisterRDMLFormat("rdml-demo") unlink(demoFile)
One qPCR instrument run within an experiment. A run contains instrument/acquisition metadata and reactions. Inherits from 'rdmlBaseType'.
runType( id = NULL, description = NA_character_, documentation = NA, experimenter = NA, instrument = NA_character_, dataCollectionSoftware = NA, backgroundDeterminationMethod = NA_character_, cqDetectionMethod = NA, thermalCyclingConditions = NA, pcrFormat = NA, runDate = NA_character_, react = NA )runType( id = NULL, description = NA_character_, documentation = NA, experimenter = NA, instrument = NA_character_, dataCollectionSoftware = NA, backgroundDeterminationMethod = NA_character_, cqDetectionMethod = NA, thermalCyclingConditions = NA, pcrFormat = NA, runDate = NA_character_, react = NA )
id |
'idType'. Unique run identifier within the experiment. |
description |
'character(1)' or 'NA'. Run description. |
documentation |
List of 'idReferenceType' objects or 'NA'. Documentation references. |
experimenter |
List of 'idReferenceType' objects or 'NA'. Experimenter references. |
instrument |
'character(1)' or 'NA'. Instrument description. |
dataCollectionSoftware |
'dataCollectionSoftwareType' or 'NA'. Acquisition software. |
backgroundDeterminationMethod |
'character(1)' or 'NA'. Background determination method. |
cqDetectionMethod |
'cqDetectionMethodType' or 'NA'. Cq calculation method. |
thermalCyclingConditions |
'idReferenceType' or 'NA'. Reference to thermal cycling conditions. |
pcrFormat |
'pcrFormatType' or 'NA'. Plate/layout format. |
runDate |
Date-time value or 'NA'. Date/time of the run. |
react |
Reaction-id-keyed list of 'reactType' objects or 'NA'. |
An S7 class.
An S7 object of class 'runType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idType'. Unique run identifier within the experiment.
'character(1)' or 'NA'. Run description.
List of 'idReferenceType' objects or 'NA'. Documentation references.
List of 'idReferenceType' objects or 'NA'. Experimenter references.
'character(1)' or 'NA'. Instrument description.
'dataCollectionSoftwareType' or 'NA'. Acquisition software.
'character(1)' or 'NA'. Background determination method.
'cqDetectionMethodType' or 'NA'. Cq calculation method.
'idReferenceType' or 'NA'. Reference to thermal cycling conditions.
'pcrFormatType' or 'NA'. Plate/layout format.
Date-time value or 'NA'. Date/time of the run.
Reaction-id-keyed list of 'reactType' objects or 'NA'.
'experimentType', 'reactType', 'pcrFormatType', 'thermalCyclingConditionsType'
Sample role, optionally restricted to a target. If 'targetId' is 'NA', the role applies to all targets unless a target-specific role overrides it. Inherits from 'rdmlBaseType'.
sampleTargetType(targetId = NA, sampleType = sampleTypeType())sampleTargetType(targetId = NA, sampleType = sampleTypeType())
targetId |
'idReferenceType' or 'NA'. Optional target reference; 'NA' means that the sample role is target-independent. |
sampleType |
'sampleTypeType'. Role of the sample for that target. |
An S7 class.
An S7 object of class 'sampleTargetType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idReferenceType' or 'NA'. Optional target reference; 'NA' means that the sample role is target-independent.
'sampleTypeType'. Role of the sample for that target.
'sampleTypeType', 'sampleType', 'targetType'
A qPCR sample/template solution. Dilutions with different concentrations are represented as different samples; technical replicates normally reference the same sample id, while biological replicates normally use different sample ids. Inherits from 'rdmlBaseType'.
sampleType( id = NULL, description = NA_character_, documentation = NA, xRef = NA, annotation = NA, type = NA, interRunCalibrator = NA, quantity = NA, calibratorSample = NA, cdnaSynthesisMethod = NA, templateQuantity = NA )sampleType( id = NULL, description = NA_character_, documentation = NA, xRef = NA, annotation = NA, type = NA, interRunCalibrator = NA, quantity = NA, calibratorSample = NA, cdnaSynthesisMethod = NA, templateQuantity = NA )
id |
'idType'. Unique sample identifier. |
description |
'character(1)' or 'NA'. Sample description. |
documentation |
List of 'idReferenceType' objects or 'NA'. References to reusable documentation. |
xRef |
List of 'xRefType' objects or 'NA'. External references. |
annotation |
List of 'annotationType' objects or 'NA'. Sample annotations. |
type |
List of 'sampleTargetType' objects or 'NA'. Roles may be target-independent or target-specific. |
interRunCalibrator |
'logical(1)' or 'NA'. Marks an inter-run calibrator. |
quantity |
Target-keyed list of 'quantityType' objects or 'NA'. Target-specific quantities. |
calibratorSample |
'logical(1)' or 'NA'. Marks a calibrator sample. |
cdnaSynthesisMethod |
'cdnaSynthesisMethodType' or 'NA'. cDNA synthesis metadata. |
templateQuantity |
'templateQuantityType' or 'NA'. Template concentration/type. |
An S7 class.
An S7 object of class 'sampleType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idType'. Unique sample identifier.
'character(1)' or 'NA'. Sample description.
List of 'idReferenceType' objects or 'NA'. References to reusable documentation.
List of 'xRefType' objects or 'NA'. External references.
List of 'annotationType' objects or 'NA'. Sample annotations.
List of 'sampleTargetType' objects or 'NA'. Roles may be target-independent or target-specific.
'logical(1)' or 'NA'. Marks an inter-run calibrator.
Target-keyed list of 'quantityType' objects or 'NA'. Target-specific quantities.
'logical(1)' or 'NA'. Marks a calibrator sample.
'cdnaSynthesisMethodType' or 'NA'. cDNA synthesis metadata.
'templateQuantityType' or 'NA'. Template concentration/type.
'sampleTargetType', 'quantityType', 'reactType', 'rdmlType'
Role of a sample for a particular target.
sampleTypeType(value = "")sampleTypeType(value = "")
value |
'character(1)'. Enumeration value; must be one of the allowed values listed below. |
An S7 class.
An S7 object of class 'sampleTypeType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
unknown sample.
no-template control.
no-amplification control.
standard.
no-target-positive control.
no-reverse-transcription control.
positive control.
optical calibrator.
'sampleTargetType', 'sampleType'
Primer, probe, and amplicon sequences associated with a target. Inherits from 'rdmlBaseType'.
sequencesType( forwardPrimer = NA, reversePrimer = NA, probe1 = NA, probe2 = NA, amplicon = NA )sequencesType( forwardPrimer = NA, reversePrimer = NA, probe1 = NA, probe2 = NA, amplicon = NA )
forwardPrimer |
'oligoType' or 'NA'. Forward primer. |
reversePrimer |
'oligoType' or 'NA'. Reverse primer. |
probe1 |
'oligoType' or 'NA'. First probe. |
probe2 |
'oligoType' or 'NA'. Second probe. |
amplicon |
'oligoType' or 'NA'. Amplicon sequence. |
An S7 class.
An S7 object of class 'sequencesType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'oligoType' or 'NA'. Forward primer.
'oligoType' or 'NA'. Reverse primer.
'oligoType' or 'NA'. First probe.
'oligoType' or 'NA'. Second probe.
'oligoType' or 'NA'. Amplicon sequence.
'oligoType', 'targetType'
Adds wide fluorescence data and its metadata to an [rdmlType]. Missing experiments, runs, reactions, samples, targets, and dyes are created when enough metadata are supplied.
setFData(x, ...)setFData(x, ...)
x |
An [rdmlType] object to modify. |
... |
Reserved for method-specific extensions. |
New runs receive a conventional 96-well format, or a 384-well format when numeric reaction identifiers exceed 96. Each fluorescence column must have exactly one matching description row; undescribed columns are skipped with a warning and duplicate descriptions are an error.
RDML objects use value semantics: this function does not modify 'x' in place. Assign the returned value.
The updated [rdmlType] object.
A matrix, data frame, or [data.table::data.table]. The first column contains the coordinate ('cyc' for amplification or 'tmp' for melting); every other fluorescence column is matched to a row of 'description' through 'fdataName'. For amplification data, an optional column named 'tmp' is stored as per-cycle temperature unless explicitly described as a fluorescence series.
A metadata table with one row per fluorescence column. Required columns are 'fdataName', 'expId', 'runId', 'reactId', and 'target'. 'sample' is required when creating a new reaction, and 'targetDyeId' is required when creating a new target. Recognized optional columns include 'sampleType', 'targetType', 'cq', 'meltTemp', and 'quantity'.
Character scalar: '"adp"' for amplification data or '"mdp"' for melting data. Defaults to '"adp"'.
How to handle metadata that disagree with existing RDML objects: '"error"' (default) stops, '"keep"' retains existing metadata, and '"replace"' updates it. Fluorescence curves supplied in 'fdata' are written for their selected 'fdataType'.
'buildRDMLFromFData()', 'asTable()', 'getFData()'
rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") source <- readRDML(rdmlFile, showProgress = FALSE) metadata <- asTable(source) metadata <- metadata[seq_len(min(2L, nrow(metadata))), ] curves <- getFData( source, request = metadata, dpType = "adp" ) copied <- setFData( rdmlType(), fdata = curves, description = metadata, fdataType = "adp" ) asTable(copied)rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") source <- readRDML(rdmlFile, showProgress = FALSE) metadata <- asTable(source) metadata <- metadata[seq_len(min(2L, nrow(metadata))), ] curves <- getFData( source, request = metadata, dpType = "adp" ) copied <- setFData( rdmlType(), fdata = curves, description = metadata, fdataType = "adp" ) asTable(copied)
One numbered step of a thermal-cycling program. Exactly one of the action properties normally describes the operation performed by the step. Inherits from 'rdmlBaseType'.
stepType( nr = integer(0), description = NA_character_, temperature = NA, gradient = NA, loop = NA, pause = NA, lidOpen = NA )stepType( nr = integer(0), description = NA_character_, temperature = NA, gradient = NA, loop = NA, pause = NA, lidOpen = NA )
nr |
Positive integer. Step number. |
description |
'character(1)' or 'NA'. Step description. |
temperature |
'temperatureType' or 'NA'. Fixed-temperature action. |
gradient |
'gradientType' or 'NA'. Gradient action. |
loop |
'loopType' or 'NA'. Loop action. |
pause |
'pauseType' or 'NA'. Pause action. |
lidOpen |
'lidOpenType' or 'NA'. Lid-open action. |
An S7 class.
An S7 object of class 'stepType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
Positive integer. Step number.
'character(1)' or 'NA'. Step description.
'temperatureType' or 'NA'. Fixed-temperature action.
'gradientType' or 'NA'. Gradient action.
'loopType' or 'NA'. Loop action.
'pauseType' or 'NA'. Pause action.
'lidOpenType' or 'NA'. Lid-open action.
'thermalCyclingConditionsType', 'temperatureType', 'gradientType', 'loopType'
Provides a compact structural summary of an [rdmlType] object.
## S7 method for class <RDML7::rdmlType> summary(object, ...)## S7 method for class <RDML7::rdmlType> summary(object, ...)
object |
An [rdmlType] object. |
... |
Additional arguments. Currently unused. |
'summary()' reports the RDML version and dates together with counts of experiments, runs, reactions, data elements, samples, targets, dyes, thermal cycling conditions, amplification curves ('adp'), and melting curves ('mdp').
The historical 'totalMultiTm' field is no longer calculated or returned.
An object of class 'summary.rdmlType'.
rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) summary(rdml)rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) summary(rdml)
Description of a qPCR target, including dye, efficiency, sequence, and assay metadata. Inherits from 'rdmlBaseType'.
targetType( id = NULL, description = NA_character_, documentation = NA, xRef = NA, type = NA, amplificationEfficiencyMethod = NA_character_, amplificationEfficiency = NA_real_, amplificationEfficiencySE = NA_real_, meltingTemperature = NA_real_, detectionLimit = NA_real_, dyeId = NA, sequences = NA, commercialAssay = NA )targetType( id = NULL, description = NA_character_, documentation = NA, xRef = NA, type = NA, amplificationEfficiencyMethod = NA_character_, amplificationEfficiency = NA_real_, amplificationEfficiencySE = NA_real_, meltingTemperature = NA_real_, detectionLimit = NA_real_, dyeId = NA, sequences = NA, commercialAssay = NA )
id |
'idType'. Unique target identifier. |
description |
'character(1)' or 'NA'. Target description. |
documentation |
List of 'idReferenceType' objects or 'NA'. Documentation references. |
xRef |
List of 'xRefType' objects or 'NA'. External references. |
type |
'targetTypeType'. Reference target or target of interest. |
amplificationEfficiencyMethod |
'character(1)' or 'NA'. Method used to determine amplification efficiency. |
amplificationEfficiency |
'numeric(1)' or 'NA'. Amplification efficiency. |
amplificationEfficiencySE |
'numeric(1)' or 'NA'. Standard error of amplification efficiency. |
meltingTemperature |
'numeric(1)' or 'NA'. Expected target melting temperature. |
detectionLimit |
'numeric(1)' or 'NA'. Detection limit. |
dyeId |
'idReferenceType'. Reference to the detection dye. |
sequences |
'sequencesType' or 'NA'. Primers/probes/amplicon. |
commercialAssay |
'commercialAssayType' or 'NA'. Commercial assay metadata. |
An S7 class.
An S7 object of class 'targetType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idType'. Unique target identifier.
'character(1)' or 'NA'. Target description.
List of 'idReferenceType' objects or 'NA'. Documentation references.
List of 'xRefType' objects or 'NA'. External references.
'targetTypeType'. Reference target or target of interest.
'character(1)' or 'NA'. Method used to determine amplification efficiency.
'numeric(1)' or 'NA'. Amplification efficiency.
'numeric(1)' or 'NA'. Standard error of amplification efficiency.
'numeric(1)' or 'NA'. Expected target melting temperature.
'numeric(1)' or 'NA'. Detection limit.
'idReferenceType'. Reference to the detection dye.
'sequencesType' or 'NA'. Primers/probes/amplicon.
'commercialAssayType' or 'NA'. Commercial assay metadata.
'targetTypeType', 'dyeType', 'dataType', 'rdmlType'
Functional role of a target.
targetTypeType(value = "")targetTypeType(value = "")
value |
'character(1)'. Enumeration value; must be one of the allowed values listed below. |
An S7 class.
An S7 object of class 'targetTypeType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
reference target.
target of interest.
'targetType'
Base class for thermal steps with duration, measurement, ramp, and per-cycle changes. Inherits from 'rdmlBaseType'.
temperatureBaseType( duration = integer(0), temperatureChange = NA_real_, durationChange = NA_integer_, measure = NA, ramp = NA_real_ )temperatureBaseType( duration = integer(0), temperatureChange = NA_real_, durationChange = NA_integer_, measure = NA, ramp = NA_real_ )
duration |
Positive integer. Step duration. |
temperatureChange |
'numeric(1)' or 'NA'. Temperature increment/decrement per cycle. |
durationChange |
'integer(1)' or 'NA'. Duration increment/decrement per cycle. |
measure |
'measureType' or 'NA'. Fluorescence measurement mode. |
ramp |
'numeric(1)' or 'NA'. Ramp rate. |
An S7 class.
An S7 object of class 'temperatureBaseType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
Positive integer. Step duration.
'numeric(1)' or 'NA'. Temperature increment/decrement per cycle.
'integer(1)' or 'NA'. Duration increment/decrement per cycle.
'measureType' or 'NA'. Fluorescence measurement mode.
'numeric(1)' or 'NA'. Ramp rate.
'temperatureType', 'gradientType', 'measureType'
Fixed-temperature thermal-cycling step. Inherits from 'temperatureBaseType'.
temperatureType( duration = integer(0), temperatureChange = NA_real_, durationChange = NA_integer_, measure = NA, ramp = NA_real_, temperature = integer(0) )temperatureType( duration = integer(0), temperatureChange = NA_real_, durationChange = NA_integer_, measure = NA, ramp = NA_real_, temperature = integer(0) )
duration |
Positive integer. Step duration. |
temperatureChange |
'numeric(1)' or 'NA'. Temperature increment/decrement per cycle. |
durationChange |
'integer(1)' or 'NA'. Duration increment/decrement per cycle. |
measure |
'measureType' or 'NA'. Fluorescence measurement mode. |
ramp |
'numeric(1)' or 'NA'. Ramp rate. |
temperature |
'numeric(1)'. Step temperature. |
An S7 class.
An S7 object of class 'temperatureType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'numeric(1)'. Step temperature.
'temperatureBaseType', 'stepType'
Total template concentration together with the template nucleotide type. Inherits from 'rdmlBaseType'.
templateQuantityType(conc = integer(0), nucleotide = nucleotideType())templateQuantityType(conc = integer(0), nucleotide = nucleotideType())
conc |
'numeric(1)'. Template concentration. |
nucleotide |
'nucleotideType'. Nucleic-acid type. |
An S7 class.
An S7 object of class 'templateQuantityType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'numeric(1)'. Template concentration.
'nucleotideType'. Nucleic-acid type.
'nucleotideType', 'sampleType'
A reusable thermal-cycling program referenced by runs or cDNA-synthesis metadata. Inherits from 'rdmlBaseType'.
thermalCyclingConditionsType( id = NULL, description = NA_character_, documentation = NA, lidTemperature = NA_real_, experimenter = NA, step = list() )thermalCyclingConditionsType( id = NULL, description = NA_character_, documentation = NA, lidTemperature = NA_real_, experimenter = NA, step = list() )
id |
'idType'. Unique program identifier. |
description |
'character(1)' or 'NA'. Program description. |
documentation |
List of 'idReferenceType' objects or 'NA'. Documentation references. |
lidTemperature |
'numeric(1)' or 'NA'. Heated-lid temperature. |
experimenter |
List of 'idReferenceType' objects or 'NA'. Experimenter references. |
step |
List of 'stepType' objects. Ordered program steps. |
An S7 class.
An S7 object of class 'thermalCyclingConditionsType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'idType'. Unique program identifier.
'character(1)' or 'NA'. Program description.
List of 'idReferenceType' objects or 'NA'. Documentation references.
'numeric(1)' or 'NA'. Heated-lid temperature.
List of 'idReferenceType' objects or 'NA'. Experimenter references.
List of 'stepType' objects. Ordered program steps.
'stepType', 'runType', 'cdnaSynthesisMethodType'
Unregister a file format
unregisterRDMLFormat(name, force = FALSE)unregisterRDMLFormat(name, force = FALSE)
name |
Registered format name. |
force |
Allow removal of a built-in format. |
'TRUE' invisibly when removed.
'registerRDMLFormat', 'listRDMLFormats'
Checks duplicate keys, dangling references, and fluorescence-curve consistency in addition to S7 property validation.
validateRDML( x, level = c("full", "structure", "references", "data"), action = c("return", "warn", "error") )validateRDML( x, level = c("full", "structure", "references", "data"), action = c("return", "warn", "error") )
x |
'rdmlType'. |
level |
Validation scope: '"structure"' checks duplicate identifiers, '"references"' checks links between RDML objects, '"data"' checks curve coordinates, and '"full"' performs all checks. |
action |
'"return"', '"warn"', or '"error"'. |
A 'data.table' of class 'rdmlValidation' describing issues.
'isValidRDML', 'rdmlSummary'
rdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) issues <- validateRDML(rdml, level = "full", action = "return") issuesrdmlFile <- system.file("extdata", "lc96_bACTXY.rdml", package = "RDML7") rdml <- readRDML(rdmlFile, showProgress = FALSE) issues <- validateRDML(rdml, level = "full", action = "return") issues
Write an RDML object through the file-format registry
writeRDML( x, fileName, format = "auto", overwrite = FALSE, loss = c("warn", "error", "allow"), ... )writeRDML( x, fileName, format = "auto", overwrite = FALSE, loss = c("warn", "error", "allow"), ... )
x |
'rdmlType'. |
fileName |
Destination path. |
format |
Registered name/alias/extension or '"auto"'. |
overwrite |
Replace an existing destination. |
loss |
Loss policy: '"warn"', '"error"', or '"allow"'. |
... |
Format-specific arguments. RDES supports 'expId', 'runId', and 'rdesType = "auto"', '"adp"', '"mdp"', or '"both"'. |
Writer-specific result, normally an output path invisibly.
'readRDML', 'listRDMLFormats', 'newRDMLLossRecord'
External database or ontology cross-reference. Inherits from 'rdmlBaseType'.
xRefType(name = NA_character_, id = NA_character_)xRefType(name = NA_character_, id = NA_character_)
name |
'character(1)' or 'NA'. Name of the external reference system. |
id |
'character(1)' or 'NA'. Identifier in that reference system. |
An S7 class.
An S7 object of class 'xRefType' representing the documented RDML schema element. Constructor arguments and object properties describe the element's structure and meaning.
'character(1)' or 'NA'. Name of the external reference system.
'character(1)' or 'NA'. Identifier in that reference system.
'sampleType', 'targetType'