Convert IUPAC CODE to regular expression

dstr_iupac2regex(dstrobj)

Arguments

dstrobj

A character

Examples

dstr_iupac2regex("MRWSYKVHDBNNN")
#> [1] "[AC][AG][AT][CG][CT][GT][ACG][ACT][AGT][CGT][ACGT][ACGT][ACGT]"