I have a string of letters where certain letters can represent 2 or more options, e.g. if there is an R it means 'substitute either A or G in this position' and an S means 'subsitute either C or G'. So, a string like RAGGTS can be expanded to be:
1.AAGGTC
2.AAGGTG
3.GAGGTC
4.GAGGTG
How can a write some code that will expand the string RAGGTS into these 4 separate sequences and do something like store them in an array?
Thanks! Becky
In reply to How to expand a string by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |