Searching quadruplex sequence from a FASTA file by using Python
<p>The quadruplex sequence of a genome looks like this:</p>

<pre><code>Gx Ny1 Gx Ny2 Gx Ny3 Gx
</code></pre>

<p>where G is the Guanine base and the Ns are representing other bases. The x, y1, y2 and y3 are integer.</p>

<p>A particular segment will be quadruplex sequence if <code>x &gt;= 2</code>.</p>

<p>My question is I want to count how many such segments are present in a FASTA sequence and what are their types in terms of x, y1,y2 and y3. For that purpose I need some help from your side. </p>
