<p>I have a fasta format file. It looks like. <a href='http://good.gd/2495353.htm'>test.fa</a></p>

<pre><code>&gt;WP1_11_x10
CCATGCGCGGGTTCAATTCCTGTCGTTCGACCC
&gt;WP1_16_x1
ACAAGCGAAGGCTCCTCAACGACGCCTCATCGGATG
&gt;WP1_17_x1
AGAACAAGATTGTTGAAAACTTGAGGA
&gt;WP1_21_x11
CCTGGGATGCGCAAGGAAGCTGAC
</code></pre>

<p>I want the below format.The number(10,1,1,11) is in the fasta header .</p>

<pre><code>CCATGCGCGGGTTCAATTCCTGTCGTTCGACCC   10
ACAAGCGAAGGCTCCTCAACGACGCCTCATCGGATG    1
AGAACAAGATTGTTGAAAACTTGAGGA     1
CCTGGGATGCGCAAGGAAGCTGAC  11
</code></pre>

<p>Who can help me?Thank you very much!!!</p>

<p>hai 21.., Please refer to code below written in perl</p>

<pre><code>  #! /usr/bin/perl -w


open(F1, '&lt;', "$ARGV[0]") or die;

while (&lt;F1&gt;){

    if ($.%2 != 0) {

         @val = split(/\_/);
         $cnt = $val[1];
    }
    else{ chomp($_); print "$_ $cnt \n"; }
}
</code></pre>

<p>This code was not written in a defensive way, this should work normally with out any problems.</p>
