Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.2.1-77ca3f0.
The following tools are available in fgsv version 0.2.1-21111db.
## Breakpoint and SV Tools

Primary tools for calling and transforming breakpoints and SVs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ object MergedPileup {
val readPairs = pileups.sumBy(_.read_pairs)
val counts = NumericCounter(pileups.map(_.total).iterator)
val total = splitReads + readPairs
val leftMean = pileups.iterator.map(p => p.total * p.left_pos / total).sum
val rightMean = pileups.iterator.map(p => p.total * p.right_pos / total).sum
val leftMean = (pileups.iterator.map(p => p.total.toLong * p.left_pos).sum / total).toInt
val rightMean = (pileups.iterator.map(p => p.total.toLong * p.right_pos).sum / total).toInt
val meanCount = counts.mean()

new MergedPileup(
Expand Down