[go: nahoru, domu]

Skip to content

Commit

Permalink
Fixed a bug in BAQ calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mobinasri committed Jul 6, 2023
1 parent 55233f4 commit 8fcefb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions programs/submodules/ptMarker/ptMarker.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,9 +790,9 @@ calc_local_baq(const faidx_t *fai, const char *contig_name, ptAlignment *alignme
}
// for the markers located within the ending margin of the confident block
while (marker &&
(marker->base_idx <= block->sqe ||
marker->alignment_idx == alignment_idx)) {
if (marker->base_idx <= block->sqe &&
((marker->base_idx <= block->sqe &&
marker->alignment_idx == alignment_idx) || (marker->alignment_idx != alignment_idx))) {
if (block->sqe - block_margin <= marker->base_idx &&
marker->alignment_idx == alignment_idx) {
qual[marker->base_idx] = 0;
}
Expand Down

0 comments on commit 8fcefb1

Please sign in to comment.