adpcr2panel: Convert adpcr object to array

View source: R/adpcr2panel.R

adpcr2panelR Documentation

Convert adpcr object to array

Description

Converts adpcr object into the list of array-like matrices.

Usage

adpcr2panel(input, breaks = FALSE)

Arguments

input

object of the adpcr class.

breaks

if TRUE, the data is divided into intervals.

Value

A named list of length equal to the number of arrays in the input. Each element is a single array in matrix-like form, where dimensions are set exactly as in case of the real plate. Names of the list corresponds to the names of assays ("tnp" data) or runs (any other type of adpcr data).

The matrices contain values from array, either integers (when use_break is FALSE) or characters (when use_break is TRUE).

Author(s)

Michal Burdukiewicz.

Examples

# generate data
ttest <- sim_adpcr(
  m = 400, n = 765, times = 20, pos_sums = FALSE,
  n_panels = 3
)
# convert object into three arrays
arrays <- adpcr2panel(ttest)
length(arrays)
# print an array
arrays[[1]]


michbur/dpcR documentation built on Nov. 17, 2022, 5:02 a.m.