generate_uORF: generate_uORF

Description Usage Arguments Value Examples

Description

generate_uORF generates a single trajecture of observed chain x.

Usage

1
generate_uORF(eL, eH, v, E, r)

Arguments

eL

a vector. Expected lengths of (5U, uE, 5U2, E, 3U).

eH

a vector. Expected heights of (5U, uI, uE, uT, 5U2, I, E, T, 3U). This is the mean parameter in gamma distribution.

v

a vector. Shape parameter in gamma distribution.

E

a scalar. Normalizing constant for the observed chain x.

r

a scalar. Ratio of chians with uORF and non-uORF.

Value

A list:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
set.seed(2019)
eL <- c(24, 36, 24, 96, 20)
eH <- c(5, 50,35,20, 40,20,10, 50,35,20,
        5, 60,35,10, 55,25,10, 60,35,10, 5)
v <- rep(1000,21)
E <- 10
r <- 1
df <- generate_uORF(eL, eH, v, E, r)
length(df$x)
barplot(df$x, names.arg=df$z)

shimlab/riboHMM2 documentation built on May 19, 2019, 6:23 p.m.