makeSampleDF {manta} | R Documentation |
The sample dataframe contains a row for each sample with a factor indicating grouping and library sizes.
makeSampleDF(counts, group=factor(colnames(counts)), lib.size=colSums(counts))
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. |
a sample dataframe
DGEList, manta, setLibrarySizes
cts.path <- system.file("extdata","PapaGO-BWA.counts-diatoms.tab", package="manta") cts <- read.delim(cts.path) sdf <- makeSampleDF(counts=cts)