title: What can I do add this counts, and make right dataframe?
body: <p>I have some problem for using Biopython, count and sum each base's numbers for parsing FASTA file. In FASTA file, total A  is how much? and total T is?</p>
  <p>but there's some problem.</p>
  <p>1.</p>
  <pre><code>handle2=&quot;/home/koreanraichu/sra_data_mo.fasta&quot;
  for record2 in SeqIO.parse(handle2,&quot;fasta&quot;):
      print(Seq(record2.seq).count(&quot;A&quot;))
      print(type(Seq(record2.seq).count(&quot;A&quot;)))
  </code></pre>
  <p>This is code, was it successfully read sequence and count adenine, but It never summarize each numbers. I tried it for list append and sum(), simply add but there's no effective. (each count type is int, but never added and printed separately)</p>
  <pre><code>for record2 in SeqIO.parse(handle2,&quot;fasta&quot;):
      if len(record2.seq) &gt; 100:
          i=0
          i=i+len(record2.seq)
      else:
          j=0
          j=j+len(record2.seq)
  print(i,j)
  </code></pre>
  <p>like upper, this code doesn't work. I meant this code for It is a conditional sum code that adds DNA of 100 bp or more and DNA of less than 100 bp separately. but it never works, too. it prints last record's data.</p>
  <p>What can I do things for solve this?</p>