Skip to contents

When only a subset of all possibles base substitutions is interesting, the remaining base substitutions can be masked. This function will hide the remaining base substitutions by renaming them to other.

Usage

mask_sub(subs, keep)

Arguments

subs

vector of base call substitutions.

keep

vector of base call substitutions to be highlighted. All other will be renamed to other.

Value

vector of base call substitutions. subs <- c("A->G", "A->C", "no change") # "A->G" "other" "no change" mask_sub(subs, c("A->G"))

# "other" "other" "no change" mask_sub(subs, c("A->T"))