mask_sub: Mask a set of base substitutions.

View source: R/helper-sub.R

mask_subR Documentation

Mask a set of base substitutions.

Description

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"))


dieterich-lab/JACUSA2helper documentation built on March 1, 2023, 12:09 a.m.