clean_mp: Clean MP data

Description Usage Arguments Details

View source: R/clean_mp.R

Description

If each unique treatment and concentration was treated as a separate treatment in calc_mp, the "tx" column of the output would contain the treatment and concentration concatenated together. This function takes the dataframe output by calc_mp and outputs the dataframe with two extra columns; 'conc' which contains just the concentration and 'compound', which contains just the compound name.

Usage

1
clean_mp(mp_df, sep, tx_col = "tx")

Arguments

mp_df

Dataframe output from calc_mp, containing mp-values and treatment and batch details.

sep

Symbol separating the treatment and concentration in the concatenated column, as string.

tx_col

Name of the column containing the concatenated treatment and concentration data.

Details

Note that this function assumes that each concatenated string has the treatment first and then the concentration. It also assumes that the concentration is numerical (does not contain any non-numerical characters) and does not contain the 'sep' symbol.


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