Skip to content

Commit

Permalink
Version 1.18.
Browse files Browse the repository at this point in the history
  • Loading branch information
w1bw committed Jun 12, 2016
1 parent f93fe2f commit bdac949
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "pilon"

version := "1.17"
version := "1.18"

scalaVersion := "2.11.8"

Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/org/broadinstitute/pilon/GenomeFile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ class GenomeFile(val referenceFile: File, val targets : String = "") {
bamFiles foreach { r.processBam(_) }
r.postProcess
if (Pilon.vcf || !Pilon.fixList.isEmpty) {
r.identifyAndFixIssues
// If we don't need pileups for VCF later, free up the memory now!
if (!Pilon.vcf) r.finalizePileUps
r.identifyAndFixIssues
// If we don't need pileups for VCF later, free up the memory now!
if (!Pilon.vcf) r.finalizePileUps
}
println(r + " log:")
r.printLog
Expand Down
11 changes: 9 additions & 2 deletions src/main/scala/org/broadinstitute/pilon/GenomeRegion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,15 @@ class GenomeRegion(val contig: ReferenceSequence, start: Int, stop: Int)
if (fix) snpFixList ::= (locus(i), rBase.toString, cBase.toString)
snps += 1
case 'amb =>
val calledBase = if (Pilon.iupac) Bases.toIUPAC(cBase, bc.altBase) else cBase
if (fix) snpFixList ::= (locus(i), rBase.toString, calledBase.toString)
if (fix) {
if (Pilon.iupac) {
// we put these on the small fix list because iupac codes can mess up assembly
// flank anchor kmers
smallFixList ::= (locus(i), rBase.toString, Bases.toIUPAC(cBase, bc.altBase).toString)
} else {
snpFixList ::= (locus(i), rBase.toString, cBase.toString)
}
}
amb += 1
case 'ins =>
val insert = bc.insertion
Expand Down

0 comments on commit bdac949

Please sign in to comment.