makeSampleDF: Make a Sample Dataframe for use in Initializing a MANTA...

Description Usage Arguments Value See Also Examples

View source: R/Samples.R

Description

The sample dataframe contains a row for each sample with a factor indicating grouping and library sizes.

Usage

1
makeSampleDF(counts, group=factor(colnames(counts)), lib.size=colSums(counts))

Arguments

counts

first number

group

a factor specifying which of each of count columns belong to each of the two conditions.

lib.size

the sizes (cumulative counts) of each of the libraries.

Value

a sample dataframe

See Also

DGEList, manta, setLibrarySizes

Examples

1
2
3
cts.path <- system.file("extdata","PapaGO-BWA.counts-diatoms.tab", package="manta")
cts <- read.delim(cts.path)
sdf <- makeSampleDF(counts=cts)

manta documentation built on Oct. 31, 2019, 3:03 a.m.