Description Usage Arguments Value Author(s) Examples
This function is a helper for the metaseqr2
pipeline, for reading SAM/BAM or BED files when a read
counts file is not available. It can also be used
very easily in an autonomous manner.
1 2 3 4 |
targets |
a named list, the output of
|
annotation |
a |
fileType |
the type of raw input files. It can be
|
transLevel |
see the |
utrOpts |
a named list with members |
interFeature |
see the |
rc |
the fraction of the available cores to use in a multicore system. |
A data frame with counts for each sample, ready to be
passed to the main metaseqr2
pipeline.
Panagiotis Moulos
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | dataPath <- system.file("extdata",package="metaseqR2")
targets <- data.frame(samplename=c("C","T"),
filename=file.path(dataPath,c("C.bam","T.bam")),
condition=c("Control","Treatment"),
paired=c("single","single"),stranded=c("forward","forward"))
path <- tempdir()
write.table(targets,file=file.path(path,"targets.txt"),
sep="\t",row.names=FALSE,quote=FALSE)
geneData <- loadAnnotation("mm9","ensembl","gene")
myTargets <- readTargets(file.path(path,"targets.txt"))
if (.Platform$OS.type == "unix") {
r2c <- read2count(targets=myTargets,
fileType=myTargets$type,annotation=geneData)
geneCounts <- r2c$counts
libsizeList <- r2c$libsize
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.