makeSampleDF {manta} | R Documentation

## 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

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

[Package manta version 1.26.0 Index]