ribosomeReleaseScore: Ribosome Release Score (RRS)

Description Usage Arguments Value Examples

View source: R/ribosomeReleaseScore.R

Description

RRS is calculated as the ratio of translational efficiency in the CDS with RPFs in the 3'UTR.

Usage

1
2
3
4
5
6
7
8
ribosomeReleaseScore(
  cdsTE,
  utr3TE,
  CDSsampleOrder,
  UTR3sampleOrder,
  pseudocount = 0,
  log2 = FALSE
)

Arguments

cdsTE, utr3TE

Translational efficiency of CDS and UTR3 region. Output of translationalEfficiency

CDSsampleOrder, UTR3sampleOrder

Sample order of cdsTE and utr3TE. The parameters are used to make sure that the order of CDS and UTR3 in TE is corresponding samples.

pseudocount

The number will be add to sum of reads count to avoid X/0.

log2

Do log2 transform or not.

Value

A vector of RRS.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
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")
cvgs <- coverageDepth(RPFs, RNAs, gtf)
cvgs.utr3 <- coverageDepth(RPFs, RNAs, gtf, region="utr3")
TE90 <- translationalEfficiency(cvgs, window = 90)
TE90.utr3 <- translationalEfficiency(cvgs.utr3, window = 90)
rrs <- ribosomeReleaseScore(TE90, TE90.utr3)

## End(Not run)

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