Learn R Programming

dpcR (version 0.5)

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

Examples

Run this code
# NOT RUN {
#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]]
# }

Run the code above in your browser using DataLab