R/base-ratio.R
base_ratio.Rd
Calculates base call ratios for base counts. bases is expected to be a nx4 matrix or data frame.
bases
base_ratio(bases)
nx4 matrix or data frame of base call counts.
data frame of base call rations bases.
bases <- matrix(c(5, 0, 5, 0, 1, 1, 1, 1), byrow = TRUE, ncol = 4) ratio <- base_ratio(bases)