Transforms multinomial (number of molecules per partition) or continuous (fluorescence) digital PCR data to binary (positive/negative partition) format.
binarize(input)
object of the class adpcr
or
dpcr
(depending on input
) with type "np"
.
#adpcr object rand_array <- sim_adpcr(200, 300, 100, pos_sums = FALSE, n_panels = 1) binarize(rand_array)#> Experiment1.1 #> [1,] 1 #> [2,] 1 #> [3,] 0 #> [4,] 1 #> [5,] 0 #> #> 295 data points ommited. #> Data type: 'np'#dpcr object rand_droplets <- sim_dpcr(200, 300, 100, pos_sums = FALSE, n_exp = 1) binarize(rand_droplets)#> Experiment1.1 #> [1,] 0 #> [2,] 0 #> [3,] 1 #> [4,] 1 #> [5,] 1 #> #> 295 data points ommited. #> Data type: 'np'