jgaetel / cutadapt

Automatically exported from code.google.com/p/cutadapt
0 stars 0 forks source link

Bug in cutadapt v1.2.1 - does not report Mb correctly #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Different amounts are quiality trimmed and adapter trimmed, but cutadapt 
reports the same amount in Mbp

   Quality-trimmed:      1389703 bp (0.1 Mbp) (25.85% of total)
     Trimmed bases:        63677 bp (0.1 Mbp) (1.18% of total)

To fix for me in: ~/src/cutadapt-1.2.1/cutadapt/scripts/cutadapt.py

line 157 should be:
print("   {0}: {1:12} bp ({2:.1F} Mbp){3}".format(what, bp, bp/1E6, s))

Chris

Original issue reported on code.google.com by chris.pe...@gmail.com on 20 Dec 2012 at 2:35

GoogleCodeExporter commented 9 years ago
True, thanks for reporting this! I've applied your fix, and it'll be part of 
the next release.

Original comment by marcel.m...@tu-dortmund.de on 21 Dec 2012 at 9:21