Last data update: 2014.03.03

R: Make a Sample Dataframe for use in Initializing a MANTA...
makeSampleDFR 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)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(manta)
Loading required package: edgeR
Loading required package: limma
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/manta/makeSampleDF.Rd_%03d_medium.png", width=480, height=480)
> ### Name: makeSampleDF
> ### Title: Make a Sample Dataframe for use in Initializing a MANTA object
> ### Aliases: makeSampleDF
> 
> ### ** Examples
> 
> cts.path <- system.file("extdata","PapaGO-BWA.counts-diatoms.tab", package="manta")
> cts <- read.delim(cts.path)
> sdf <- makeSampleDF(counts=cts)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>