]> git.donarmstrong.com Git - samtools.git/commitdiff
* samtools-0.1.2-7
authorHeng Li <lh3@live.co.uk>
Fri, 13 Feb 2009 09:54:45 +0000 (09:54 +0000)
committerHeng Li <lh3@live.co.uk>
Fri, 13 Feb 2009 09:54:45 +0000 (09:54 +0000)
 * fixed a minor bug in flagstat

bam_stat.c
bamtk.c

index 142933666d687e261367664aaabcdbfcb4e3107f..a4522daa49257b920ab26586a6062d046a26d9e3 100644 (file)
@@ -62,9 +62,9 @@ int bam_flagstat(int argc, char *argv[])
        printf("%lld paired in sequencing\n", s->n_pair_all);
        printf("%lld read1\n", s->n_read1);
        printf("%lld read2\n", s->n_read2);
-       printf("%lld properly paired (%.2f%%)\n", s->n_pair_good, (float)s->n_pair_good / s->n_reads * 100.0);
+       printf("%lld properly paired (%.2f%%)\n", s->n_pair_good, (float)s->n_pair_good / s->n_pair_all * 100.0);
        printf("%lld with itself and mate mapped\n", s->n_pair_map);
-       printf("%lld singletons (%.2f%%)\n", s->n_sgltn, (float)s->n_sgltn / s->n_reads * 100.0);
+       printf("%lld singletons (%.2f%%)\n", s->n_sgltn, (float)s->n_sgltn / s->n_pair_all * 100.0);
        printf("%lld with mate mapped to a different chr\n", s->n_diffchr);
        printf("%lld with mate mapped to a different chr (mapQ>=5)\n", s->n_diffhigh);
        free(s);
diff --git a/bamtk.c b/bamtk.c
index b0eec6ee881e871ddc34cf43aa69ddcc955f40c4..65b7d69aaa939fe0b8d100f0af771f1f2c21f833 100644 (file)
--- a/bamtk.c
+++ b/bamtk.c
@@ -3,7 +3,7 @@
 #include "bam.h"
 
 #ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION "0.1.2-6"
+#define PACKAGE_VERSION "0.1.2-7"
 #endif
 
 int bam_taf2baf(int argc, char *argv[]);