castSummary: Makes a long form data frame into wide form.

Description Usage Arguments Value Author(s) Examples

View source: R/parseCounts.R

Description

Returns a data frame with the dependent columns prefixed with given labels (depending on the targets). All relevant columns are retained.

Usage

1
castSummary(df, ch1Label = "Mt", ch2Label = "Wt", rows = NULL)

Arguments

df

A data frame created by calling read.csv on the raw ddPCR output.

ch1Label

The prefix to use for the channel 1 target. Defaults to "Mt".

ch2Label

The prefix to use for the channel 2 target. Defaults to "Wt".

rows

The number of rows to retain from the original data frame. If NULL, all of the wells are used. Defaults to NULL.

Value

A data frame with the target rows merged.

Author(s)

Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk

Examples

1
2
3
4
5
## Cast output from Bio-Rad's QuantaSoft into wide form.
castSummary(KRAScountsQS)

## Only retain selected rows.
castSummary(KRAScountsQS, rows=c(1,4:6))

CRUKMI-ComputationalBiology/twoddpcr documentation built on Feb. 14, 2021, 9:18 p.m.