]> git.donarmstrong.com Git - rsem.git/blobdiff - BamConverter.h
Modified rsem-tbam2gbam so that the original alignment quality MAPQ will be preserved...
[rsem.git] / BamConverter.h
index 4ea7d3e673e3942e4de7a678acb5be15faf03c11..d36f3d10c4d4e78ab4351f7482477fc77d318e07 100644 (file)
@@ -227,7 +227,8 @@ inline void BamConverter::writeCollapsedLines() {
                                memcpy(bam_aux_get(tmp_b, "ZW") + 1, (uint8_t*)&(prb), bam_aux_type2size('f'));
                                tmp_b->core.qual = getMAPQ(prb);
                        }
-                       else tmp_b->core.qual = getMAPQ(1.0);
+                       // otherwise, just use the MAPQ score of the orignal alignment
+
                        samwrite(out, tmp_b);
                        if (isPaired) {
                                if (p != NULL) memcpy(bam_aux_get(tmp_b2, "ZW") + 1, (uint8_t*)&(prb), bam_aux_type2size('f'));