View source: R/non-ref-ratio.R
non_ref_ratio | R Documentation |
Retrieves non reference ratio based on ref
and base calls given by bases
.
non_ref_ratio(bases, ref)
bases |
nx4 matrix or data frame of base call counts. |
ref |
string vector of reference bases. |
numeric vector of non reference substitution ratios for bases
.
ref <- c("A", "A", "A") bases <- tidyr::tribble( ~A, ~C, ~G, ~T, 10, 0, 5, 5, 0, 1, 1, 1, 1, 1, 1, 1 ) non_ref_ratio(bases, ref)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.