Skip to content

Commit

Permalink
mapq
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasrausch committed Mar 18, 2024
1 parent cd1af69 commit 3b992ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pct.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ namespace lorax
uint32_t qsublen = querySubLength(rec);
uint32_t qlen = sequenceLength(rec);
double pctval = (double) (match) / (double) qsublen;
ofile << bam_get_qname(rec) << '\t' << rec->core.qual << '\t' << qlen << '\t' << qsublen << '\t' << pctval << '\t' << largestdel << '\t' << largestins << "\taligned\t" << match << '\t' << mismatch << '\t' << del << '\t' << delsize << '\t' << ins << '\t' << inssize << '\t' << sc << '\t' << scsize << '\t' << hc << '\t' << hcsize << std::endl;
ofile << bam_get_qname(rec) << '\t' << (int32_t) (rec->core.qual) << '\t' << qlen << '\t' << qsublen << '\t' << pctval << '\t' << largestdel << '\t' << largestins << "\taligned\t" << match << '\t' << mismatch << '\t' << del << '\t' << delsize << '\t' << ins << '\t' << inssize << '\t' << sc << '\t' << scsize << '\t' << hc << '\t' << hcsize << std::endl;
}
if (seq != NULL) free(seq);
ofile.close();
Expand Down

0 comments on commit 3b992ce

Please sign in to comment.