Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In bsw2_stat(), fail to infer when no pairs are within boundaries
Just as we set r.failed and return early if there are no high-quality read pairs at all, also do so if there are none within the calculated boundaries. This avoids returning avg=NAN std=NAN, which leads to malloc(INFINITY) and a crash; fixes lh3#108.
- Loading branch information