Entering edit mode
3.0 years ago
Chirag Parsania
★
2.0k
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.
try this in python 3:
try one of the following in R:
Thanks.
expand.grid
is the one!