Skip to content

Commit

Permalink
Fix maxInsertSize for unpaired
Browse files Browse the repository at this point in the history
  • Loading branch information
w1bw committed Apr 28, 2016
1 parent 723af9a commit 9455176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/org/broadinstitute/pilon/BamFile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class BamFile(val bamFile: File, var bamType: Symbol) {

def maxInsertSize = {
// Returns reasonable max insert size for this bam, either computed or defaulted
val maxFromStats = insertStatsFR.maxInsertSize max insertStatsRF.maxInsertSize
val maxFromStats = insertStatsFR.maxInsertSize max insertStatsRF.maxInsertSize max insertStatsUnpaired.maxInsertSize
if (maxFromStats > 0) maxFromStats else BamFile.maxInsertSizes(bamType)
}

Expand Down

0 comments on commit 9455176

Please sign in to comment.