readDGE {edgeR} | R Documentation |
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.
readDGE(files,...)
files |
character vector of filenames |
... |
option arguments to send to read.table |
list with elements data
(table of counts), lib.size
(library sizes)
Mark Robinson
# 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)