GENEXP_CDS: GENEXP_CDS, count reads mapped to CDS regions and calculate...

Description Usage Arguments Value Author(s) Examples

View source: R/APAlyzer.R

Description

Map reads to CDS regions and calculate TPM for each gene.

Usage

1
    GENEXP_CDS(CDSbygene, flS, Strandtype="NONE")

Arguments

CDSbygene

a genomic ranges of CDS regions for each coding gene

flS

bamfile lists containing the file and path of bam files

Strandtype

strand type of the bam file; "forward" is forwand sequencing, "invert" is reverse sequencing and "NONE" is non-strand specific, Default is "NONE".

Value

The function GENEXP_CDS() return a dataframe containing reads count, TPM for each gene

Author(s)

Ruijia Wang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## count reads mapped to CDS regions and calculate TPM for each gene
## using forward sequencing
    library("TBX20BamSubset")
    library("Rsamtools")
    library("GenomicAlignments")
    library("GenomicFeatures")
    library("org.Mm.eg.db")
    flsall = getBamFileList()
    extpath = system.file("extdata", "mm9.chr19.refGene.R.DB", package="APAlyzer")
    txdb = loadDb(extpath, packageName='GenomicFeatures')
    IDDB = org.Mm.eg.db
    CDSdbraw = REFCDS(txdb,IDDB)
    DFGENEraw = GENEXP_CDS(CDSdbraw, flsall, Strandtype="forward")

APAlyzer documentation built on Nov. 8, 2020, 4:54 p.m.