Lets say I have a DNA sequence with an ambiguous base, N, where N can represent any base (its a flex position).
dna.seq <- 'ATGCN'
I want a vector of every possible DNA sequence this could represent. It would look like:
c('ATGCA','ATGCT','ATGCG','ATGCC')
The solution needs to account for dna sequences with multiple N characters as well, which will create many more potential DNA sequences.