countReads | R Documentation |
Calculate the reads counts for gene level or transcript level.
countReads(
RPFs,
RNAs,
gtf,
level = c("tx", "gene"),
bestpsite = 13,
readsLen = c(28, 29),
anchor = "5end",
ignore.seqlevelsStyle = FALSE,
...
)
RPFs |
Bam file names of RPFs. |
RNAs |
Bam file names of RNAseq. |
gtf |
GTF file name for annotation. |
level |
Transcript or gene level. |
bestpsite |
numeric(1). P site postion. |
readsLen |
numeric(1). reads length to keep. |
anchor |
5end or 3end. Default is 5end. |
ignore.seqlevelsStyle |
Ignore the sequence name style detection or not. |
... |
Parameters pass to featureCounts except isGTFAnnotationFile, GTF.attrType, and annot.ext. |
A list with reads counts.
path <- system.file("extdata", package="ribosomeProfilingQC")
RPFs <- dir(path, "RPF.*?.[12].bam$", full.names=TRUE)
gtf <- file.path(path, "Danio_rerio.GRCz10.91.chr1.gtf.gz")
RNAs <- dir(path, "mRNA.*?.[12].bam$", full.names = TRUE)
cnts <- countReads(RPFs[1], gtf=gtf, level="gene", readsLen=29)
#cnts <- countReads(RPFs[1], RNAs[1], gtf=gtf, level="gene", readsLen=29)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.