norm_all: Normalise data

Description Usage Arguments Value

View source: R/norm_all.R

Description

Takes in CellProfiler morphology data and uses reshape::rescaler to normalise all data columns. Also calculates count value normalised to the negative control, for each plate, and retains the raw count value.

Usage

1
2
norm_all(df, data_cols, count_col = "Count_Cells", compound_col, negCtrl,
  rescale_type = "robust")

Arguments

df

Dataframe containing the CellProfiler data to normalise.

data_cols

Numeric vector. Indicies of the data columns of df. All of these columns should be of numerice type. All remaining (non 'data_cols') should NOT be of numeric type.

count_col

Name of the column containing the raw cell counts, as string.

compound_col

Name of the column in 'df' containing the compound details.

negCtrl

Name of the negative control compound.

rescale_type

Type of rescaling to use, as string. Will be passed to reshape::rescaler.

Value

A dataframe with the following columns, (in order):


lucyleeow/CellProfileR documentation built on May 21, 2019, 2:30 a.m.