split_plate: split data from a plate into multiple experiment unit (one...

Description Usage Arguments Details Value

View source: R/moonshot.R

Description

This split function tries to split data from a plate which consists multiple drugs for the same cell line. The control data is shared across multiple drugs. It returns a list of experiement unit which is dose response data for one drug and one cell line including the control data.

Usage

1
2
3
split_plate(dat, CL = "CellLine", Agent = "Agent1", Dose = "AgentConc1",
  Response = "CellCount", ControlName = "Control1", PlateID = "PlateID",
  PlateName = "PlateName", minReplicate = 3)

Arguments

dat

a data frame

CL

colname for cell line

Agent

colname for drug name

Dose

colname for dose

Response

colname for response

ControlName

name for the control data so that it will not be treated as a drug.

PlateID

colname for PlateID. this is for tracking, not used for split

PlateName

colname for PlateName, usually the run date. this is for tracking, not used for split

minReplicate

if a subset does not have nrow exceeding this, throw an error

Details

This is written specific to the lung moonshot screening data where on one plate, only a single cell line is profiled with multiple drugs; The control data is shared across different drugs. Currently it only splits on drug and append control data to each drug. We may later need to augment this function so that it splits on both cell line and drug.

Value

a list of data frame after split with the same columns as dat


nickytong/drexplorerExtra documentation built on May 20, 2019, 9:15 p.m.