easyRNASeq-summarization-methods: Count methods for RNAseq object

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Summarize the read counts per exon, feature, gene, transcript or island.

Usage

1
2
3
4
5
exonCounts(obj)
featureCounts(obj)
transcriptCounts(obj,from="exons")
geneCounts(obj,summarization=c("bestExons","geneModels"),...)
islandCounts(obj,force=FALSE,...)

Arguments

obj

An object derived from class RNAseq,can be a matrix for RPKM, see details

force

For islandCount, force RNAseq to redo findIsland

from

either "exons" or "features" can be used to summarize per transcript

summarization

Method use for summarize genes

...

See details

Details

... for

Value

A numeric vector containing count per exon, feature, gene or transcript.

Author(s)

Nicolas Delhomme

See Also

easyRNASeq annotation methods .geneModelSummarization findIslands

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Not run: 
library(BSgenome.Dmelanogaster.UCSC.dm3)

 # get the example data files
 tdir <- tutorialData()

 # get an example annotation file - we retrieve it from GitHub using curl
 gAnnot.rda <- fetchData("gAnnot.rda")

	# create an RNAseq object
	# summarizing 2 bam files by exons
	rnaSeq <- easyRNASeq(tdir,
                     organism="Dmelanogaster",
                     chr.sizes=seqlengths(Dmelanogaster),
                     readLength=36L,
                     annotationMethod="rda",
                     annotationFile=gAnnot.rda,
                     format="bam",
                     count="exons",
                     pattern="[A,C,T,G]{6}\\.bam$",
                     outputFormat="RNAseq")
	# summing up the exons by transcript
	rnaSeq <- transcriptCounts(rnaSeq)

## End(Not run)

easyRNASeq documentation built on April 30, 2020, 2 a.m.