Skip to contents

Calculates arrest rate from arrest and through reads.

Usage

arrest_rate(arrest_cov, through_cov)

Arguments

arrest_cov

numeric vector of read coverage that exhibit read arrest.

through_cov

numeric vector of read coverage that DO NOT exhibit read arrest.

Value

numeric vector of arrest rates.

Examples

arrest_cov <- c(10, 1, 0)
through_cov <- c(0, 1, 1)
str(arrest_rate(arrest_cov, through_cov))
#>  num [1:3] 1 0.5 0