R/base_sub.R
base_sub.Rd
Calculates and formats base changes for ref and bc. All elements in ref must be all length 1.
ref
bc
base_sub(bases, ref)
vector of base calls or tibble of base call counts.
vector of reference bases.
vector of formatted base call substitutions.
bases <- c("AG", "G", "C", "G") ref <- c("A", "A", "C", "A") base_sub(ref, bases) #> [1] "AG->A" "G->A" "no change" "G->A"