Learn R Programming

dpcR (version 0.3)

adpcr2panel: Convert adpcr object to array

Description

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

Usage

adpcr2panel(input, use_breaks = FALSE)

Arguments

input
object of the adpcr class.
use_breaks
if TRUE, input is cutted into intervals using the breaks slot. If FALSE, the integer class of the input is preserved. Ignored if data has "np" type (see possible types of adpcr objects).

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).

Examples

Run this code
#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)
#see the first array
arrays[[1]]

#convert the object using breaks
arrays <- adpcr2panel(ttest, use_breaks = TRUE)
arrays[[1]]

Run the code above in your browser using DataLab