calcPlateStats: Calculate plate statistics

Description Usage Arguments Value Examples

Description

Calculates NPI (normalized percentage inhibition) and z-score for a plate.

Usage

1
2
calcPlateStats(in.dt, in.col.meas, in.col.well, in.wells.neg, in.wells.pos,
  in.wells.untr = NULL)

Arguments

in.dt

Input data table with aggregate, per well values. Should contain: numeric column with measurmeents, string column with well names (e.g. 'A01', 'A02'), string vector with names of negative control wells, string vector with names of positive control wells.

in.col.meas

Numeric column with measurement.

in.col.well

Names of the column with well names (e.g. 'A01', 'A02').

in.wells.neg

Names of wells with negative controls (e.g. 'A01', 'A02').

in.wells.pos

Names of wells with positive controls (e.g. 'A01', 'A02').

in.wells.untr

Names of untreated wells (e.g. 'A01', 'A02'). Default, NULL. If not NULL, untreated wells will be excluded from mean and sd for z-score calculation.

Value

Data table with same columns as original but with columns npi and zscore added.

Examples

1
2
3
4
require(data.table)
dt = data.table(well = c('A01', 'A02', 'A03', 'B01', 'B02', 'B03', 'C01', 'C02', 'C03'),
                x = rnorm(9))
calcPlateStats(dt, 'x', 'well', 'B01', 'C03')

dmattek/hcs-package documentation built on May 16, 2019, 7:24 a.m.