Learn R Programming

dpcR (version 0.3)

binarize: Binarize digital PCR data

Description

Transforms multinomial (number of molecules per partition) or continuous (fluorescence) digital PCR data to binary (positive/negative partition) format.

Usage

binarize(input)

Arguments

input
object of the class adpcr or ddpcr with one of following types:"ct", "fluo" or "nm".

Value

object of the class adpcr or ddpcr (depending on input) with type "np".

Examples

Run this code

#adpcr object
rand_array <- sim_adpcr(200, 300, 100, pos_sums = FALSE, n_panels = 1)
binarize(rand_array)

#ddpcr object
rand_droplets <- sim_ddpcr(200, 300, 100, pos_sums = FALSE, n_exp = 1)
binarize(rand_droplets)

Run the code above in your browser using DataLab