b_score: 2 way median polish

View source: R/med_smooth.R

b_scoreR Documentation

2 way median polish

Description

2 way median polish to remove plate effects such as row/column/edge effects. Given a dataframe containing alpha-numeric wellIDs and numerical values, this b_score will return a dataframe of the same structure after a two-way median smooth.

Usage

b_score(data, well, plate, plate_id = NULL, normalise = FALSE)

Arguments

data

numeric data, either a vector or dataframe column

well

alpha-numeric wellIDs. e.g 'A01'

plate

numeric, number of wells within a plate

plate_id

Vector of plate_identifiers e.g "plate_01"

normalise

Boolean, whether or not to divide by ‘data'’s MAD

Examples

df <- data.frame(well = num_to_well(1:96),
                 vals = rnorm(96))

b_score(data = df$vals,
        well = df$well,
        plate = 96)

Swarchal/platetools documentation built on March 7, 2024, 10 p.m.