readDGE(files, path=NULL, columns=c(1,2), group=NULL, labels=NULL, ...)
files
.read.delim
.DGEList
object containing a matrix of counts, with a row for each unique tag found in the input files and a column for each input file.
By default, the files are assumed to be tab-delimited and to contain column headings.
Other file formats can be handled by adding arguments to be passed to read.delim
.
For example, use header=FALSE
if there are no column headings and use sep=","
to read a comma-separated file.
Instead of being a vector, the argument files
can be a data.frame containing all the necessary sample information.
In that case, the filenames and group identifiers can be given as columns files
and group
respectively, and the labels
can be given as the row.names of the data.frame.
read.delim
for other possible arguments that can be accepted.# Read all .txt files from current working directory
## Not run: files <- dir(pattern="*\\.txt$")
# RG <- readDGE(files)## End(Not run)
Run the code above in your browser using DataLab