Calculate allelic imbalance
Usage
calc_ai(ref_counts, alt_counts)
Arguments
- ref_counts
vector of ref counts
- alt_counts
vector of alt counts
Value
measure of allelic imbalance
Examples
calc_ai(c(4, 2, 1), c(2, 3, 1))
#> [1] 0.5000000 0.3333333 0.0000000