arrest_rate: Calculate arrest rate.

View source: R/arrest-rate.R

arrest_rateR Documentation

Calculate arrest rate.

Description

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))

dieterich-lab/JACUSA2helper documentation built on March 1, 2023, 12:09 a.m.