| df2dpcr | R Documentation |
Converts data.frame object to to adpcr or
dpcr object. The resulting object will have "tnp"
type.
df2dpcr(df)
df |
data frame with specified column names. See Details. |
The data frame must have REDF structure. It means that data must contain following columns with exactly specified names:
names of experiments
indices of replicates
names of assays
number of positive partitions
total number of partitions
volume of partition (nL)
uncertainty of partition's volume (nL)
partitions with k equal or higher than threshold are
treated as positve.
There are also one optional column:
indices of panels
If the additional column is present, the resulting object has
adpcr type.
An object of adpcr or dpcr type,
depends on the presence of additional column with panel indices (see Details).
Michal Burdukiewcz, Stefan Roediger
Flexibly create dpcr objects: create_dpcr
Inverse function: dpcr2df
dat <- data.frame(
experiment = factor(rep(paste0("Experiment", 1L:2), 3)),
replicate = c(1, 1, 2, 2, 3, 3),
assay = "Assay1",
k = c(55, 121, 43, 150, 70, 131),
n = 765,
v = 1,
uv = 0
)
df2dpcr(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.