Skip to contents

Usefull, when creating summaries for base changes with add_summary(). Merging base changes with different reference bases is not allowed. However, base changes with different non-reference bases can be merged, e.g.: c("A->G", "A->C") will be merged to "A->CG"

Usage

merge_sub(subs)

Arguments

subs

vector of base substitutions.

Value

merged base substitutions.

Examples

sub <- c("A->G", "A->G")
# result: A->G
merge_sub(sub)
#> [1] "A->G"
# result: A->CG
sub <- c("A->G", "A->C")
merge_sub(sub)
#> [1] "A->CG"