base_ratio: Calculate base call ratios for base counts.

View source: R/base-ratio.R

base_ratioR Documentation

Calculate base call ratios for base counts.

Description

Calculates base call ratios for base counts. bases is expected to be a nx4 matrix or data frame.

Usage

base_ratio(bases)

Arguments

bases

nx4 matrix or data frame of base call counts.

Value

data frame of base call rations bases.

Examples

bases <- matrix(c(5, 0, 5, 0,  1, 1, 1, 1), byrow = TRUE, ncol = 4)
ratio <- base_ratio(bases)

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