ambiguous2regex: Converts ambiguous dna to an appropriate regular expression

View source: R/dna.R

ambiguous2regexR Documentation

Converts ambiguous dna to an appropriate regular expression

Description

Converts ambiguous dna to an appropriate regular expression

Usage

ambiguous2regex(dna)

Arguments

dna

input sequence with ambiguous bases

Value

regular expression to match the ambiguous dna

References

https://en.wikipedia.org/wiki/Nucleic_acid_notation

Examples

dnaRegex<-ambiguous2regex('ANRT')
grepl(dnaRegex,c('ATGT','ACAT','AGTT'))

sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.