powered by
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.
b_score
b_score(data, well, plate, plate_id = NULL, normalise = FALSE)
numeric data, either a vector or dataframe column
alpha-numeric wellIDs. e.g 'A01'
numeric, number of wells within a plate
Vector of plate_identifiers e.g "plate_01"
Boolean, whether or not to divide by `data`'s MAD
df <- data.frame(well = num_to_well(1:96), vals = rnorm(96)) b_score(data = df$vals, well = df$well, plate = 96)
Run the code above in your browser using DataLab