Extract all runs belonging to specific assay or experiment(s) from a codedpcr object while preserving all other attributes.
extract_dpcr(input, id_exper = NULL, id_assay = NULL)
adpcr
or
dpcr
.NULL
if
id_assay
is specified.NULL
if
id_exper
is specified.The object of the input's class (adpcr
or
dpcr
).
The standard Extract
operator x[i]
treats
dpcr objects as matrix
and extracts values without preserving other
attributies of the object.
Extract run(s): extract_run
.
#extract using only experiment's ID extract_dpcr(six_panels, id_exper = 1)#> Experiment1.1 Experiment1.2 #> [1,] 0 0 #> [2,] 0 0 #> [3,] 0 0 #> [4,] 0 0 #> [5,] 0 0 #> #> 760 data points ommited. #> Data type: 'nm'#extract using assay name extract_dpcr(six_panels, id_assay = "MYC")#> Experiment1.2 Experiment2.2 Experiment3.2 #> [1,] 0 0 0 #> [2,] 0 0 0 #> [3,] 0 0 0 #> [4,] 0 0 0 #> [5,] 0 0 0 #> #> 760 data points ommited. #> Data type: 'nm'#extract using multiple names extract_dpcr(six_panels, id_exper = c("Experiment1", "Experiment2"))#> Experiment1.1 Experiment1.2 Experiment2.1 Experiment2.2 #> [1,] 0 0 0 0 #> [2,] 0 0 0 0 #> [3,] 0 0 0 0 #> [4,] 0 0 0 0 #> [5,] 0 0 0 0 #> #> 760 data points ommited. #> Data type: 'nm'