readDGE {edgeR}R Documentation

Read a list of files containing DGE data

Description

Reads a list of text files, one for each sample. Files should be tab-delimited with an identifier (could be tag sequence) as the first column and counts as the second column. The function creates one big table with 0s where necessary.

Usage

 
readDGE(files,...)

Arguments

files character vector of filenames
... option arguments to send to read.table

Value

list with elements data (table of counts), lib.size (library sizes)

Author(s)

Mark Robinson

Examples

#  Read all .txt files from current working directory

## Not run: 
files <- dir(pattern="*\\.txt$")
RG <- readDGE(files,sep="\t",header=TRUE,comment.char="",stringsAsFactors=FALSE)
## End(Not run)

[Package edgeR version 1.0.4 Index]