generate all combinations of strings from regular expression in R
Hi,
I have a regular expreesion - C|T|G,C|T,T,C,G,A,G,A|G,A|G|C,A|T|G|C of sequence motif. How can I generate all possible strings out of that in R ?
EDIT ========
the regx pattern is this [C|T|G][C|T]TCGAG[A|G][A|G|C][A|T|G|C] and not the above one.
Thanks, Chirag.
• 1,800 views
•
link
0 answers
No answers yet.
Log in to answer this question.
try this in python 3:
try one of the following in R:
Thanks.
expand.gridis the one!