Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 authored Feb 14, 2025
1 parent 33795c3 commit 721d9a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/com/fulcrumgenomics/bam/api/SamSource.scala
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ class SamSource private(private val reader: SamReader) extends View[SamRecord] w
private def newQueryInterval(region: Locatable): QueryInterval = {
val contig = dict(region.getContig)
val contigIndex = contig.index
val start = Math.max(l.getStart, 1);
val end = Math.min(l.getEnd, contig.length)
val start = Math.max(region.getStart, 1);
val end = Math.min(region.getEnd, contig.length)
new QueryInterval(contigIndex, start, end)
}

Expand Down

0 comments on commit 721d9a1

Please sign in to comment.