Learn R Programming

toxplot (version 0.1.1)

qc_per_plate: Quality-control metrics calculation

Description

Calculate QC metrics, includin Z' score, CV of DMSO negative control, per assay plate.

Usage

qc_per_plate(d, assay_info, resp = "nval_median")

Arguments

d

data.frame contains essential columns with the raw data.

assay_info

assay_info list, contains names of primary and cytotox assay, names must match what are provided in the raw data, under the column 'assay'.

resp

response type, specify either 'nval_median' or 'nval_mean' for QC calculation

Value

three dataframe each representing negative control stats, positive control stats and QC metrics (CV_DMSO, Z' score, SSMD) for each assay plate

Examples

Run this code
# NOT RUN {
## calculate QC measures from demo data
assay_info <- list(prim_assay = "Primary",toxi_assay = "Cytotox")
demo_mc_norm <- normalize_per_plate(demo_mc, nctrl = "DMSO")
qc <- qc_per_plate(demo_mc_norm, assay_info)

# }

Run the code above in your browser using DataLab