"tgtaaaaacaagaaaaacatggaatgtataatactataaataaaaaaagtaggaagaagaaccaaaaca\
aagggcgttttaaagagagacgaat"
based on the above string (a DNA sequence) I wish to extract sub-strings of length $>5$ characters that compose of consecutive "a"
's or "t"
's and not include "c"
and "g"
.
For example, few of the substrings are "taaaaa"
, "tataat"
, "tataaat"
$\ldots$ so on and so forth.
I tried using StringCases
but I cannot identify a pattern for the StringCase
function that I can employ to select only sub-strings that are combinations of "a"
's or "t"
's.
Moreover, I would be grateful if someone can direct me to a place where I can study more about how to use patterns for strings in Mathematica.