getFPKM: Get FPKM values for counts

Description Usage Arguments Value Examples

View source: R/getFPKM.R

Description

Calculate Fragments Per Kilobase of transcript per Million mapped reads (FPKM) for counts.

Usage

1
getFPKM(counts, gtf, level = c("gene", "tx"))

Arguments

counts

Output of countReads or normByRUVs

gtf

GTF file name for annotation.

level

Transcript or gene level.

Value

A list with FPKMs

Examples

1
2
3
4
5
6
7
path <- system.file("extdata", package="ribosomeProfilingQC")
#RPFs <- dir(path, "RPF.*?.[12].bam$", full.names=TRUE)
#RNAs <- dir(path, "mRNA.*?.[12].bam$", full.names=TRUE)
#gtf <- file.path(path, "Danio_rerio.GRCz10.91.chr1.gtf.gz")
#cnts <- countReads(RPFs, RNAs, gtf, level="gene")
cnts <- readRDS(file.path(path, "cnts.rds"))
fpkm <- getFPKM(cnts)

ribosomeProfilingQC documentation built on March 13, 2021, 2:01 a.m.