Description Usage Arguments Details Value Examples
This function assumes that STAR aligner has been run with the
--quantMode GeneCounts
option. It simply reads in the data
files, one-per-sample, into a matrix with rownames corresponding
to the gene names in the STAR output and column names that are
the file names passed to the function as the first parameter.
1 | loadSTARCounts(fnames, quant = c("unstranded", "FRaligned", "SRaligned"))
|
fnames |
The file names for each of the .tab files from STAR. |
quant |
Which column from the STAR output to use. See details section for more information. |
The choice of quant
is based on how STAR interprets the
reads relative to strandedness of the protocol used to produce
the data. In particular, unstranded
is used for an
unstranded protocol, FRaligned
is for when the first read
is in the same direction as the strand of the mRNA, and
SRaligned
is for when the second read is in the same
direction as the strand of the mRNA.
A matrix of counts, with genes from the STAR output on the rownames and file names on the columns.
1 2 3 4 5 6 7 | fnames = dir(system.file(package='SeansStuff','extdata'),full.names=TRUE)
mat = loadSTARCounts(fnames)
dim(mat)
head(mat)
# clean up column names
colnames(mat) = basename(colnames(mat))
head(mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.