Skip to contents

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)