Skip to content

Commit

Permalink
Ensure that query range used is limited to contig start/stop. (#31)
Browse files Browse the repository at this point in the history
* Ensure that query range used is limited to contig start/stop.
  • Loading branch information
tfenne authored Oct 18, 2023
1 parent 204a5ee commit 70519fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/tools/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: fgsv tools

# fgsv tools

The following tools are available in fgsv version 0.1.0-fd73568.
The following tools are available in fgsv version 0.1.0-dcaa891.
## All tools

All tools.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ case class AggregatedBreakpointPileup(id: String,
source = src,
contig = contig,
breakends = pileups,
queryMin = minPos - flank,
queryMax = maxPos + flank,
queryMin = Math.max(1, minPos - flank),
queryMax = Math.min(maxPos + flank, src.dict(contig).length),
minTotal = minTotal,
minFrequency = minFrequency,
)
Expand Down Expand Up @@ -461,7 +461,6 @@ case class AggregatedBreakpointPileup(id: String,
private def overlapsTarget(contig: String, start: Int, end: Int, targets: OverlapDetector[BEDFeature]): Boolean = {
targets.overlapsAny(new Interval(contig, start, end))
}

}


Expand Down

0 comments on commit 70519fd

Please sign in to comment.