Learn R Programming

manta (version 1.18.0)

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

Description

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

Usage

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

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

Run the code above in your browser using DataLab