transprob: transprob

Description Usage Arguments Value Examples

Description

transprob creats the transition matrix for the hidden markov chain.

Usage

1
transprob(trans, stp, stp2)

Arguments

trans

c(rho_u, rho, delta)

stp

1 if next codon is stop codon

stp2

In generate_uORF, stp = theta_u, stp2 = theta

Value

The transition matrix A

Examples

1
2
3
4
5
trans <- c(0.1, 0.2, 0.3)
stp <- 0.4; stp2 <- 0.45
A <- transprob(trans, stp, stp2)
colnames(A) <- seq(1,21)
View(A)

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