Skip to contents

Transforms read substitution. JACUSA2 can stratify reads based on base substitutions "-B A2G". This function will transform "A2G" to "A->G".

Usage

clean_tag(subs)

Arguments

subs

string vector of read tags.

Value

string vector of base substitution.

Examples

subs <- c("*", "A2G", "*")
clean_tag(subs)
#> [1] "*"    "A->G" "*"