Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAM TLEN should be 0 when either read is unmapped
this_rid/this_pos will be copied from r_prev(=r_next)'s values when this read is unmapped (i.e., r is NULL). In this case, we can write RNEXT as '=' but should not calculate TLEN from these placeholder values. Similarly when the mate is unmapped (i.e., r_next is NULL). Fixes #365.
- Loading branch information