Skip to content

Commit

Permalink
Convert to htsjdk for BAM processing. Pilon release 1.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
w1bw committed Mar 29, 2015
1 parent d922206 commit 46e5761
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 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.11"
version := "1.12"

scalaVersion := "2.10.4"

Expand Down
Binary file added lib/htsjdk-1.130.jar
Binary file not shown.
Binary file removed lib/picard-1.98.jar
Binary file not shown.
Binary file removed lib/sam-1.98.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/scala/org/broadinstitute/pilon/Assembler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package org.broadinstitute.pilon
import scala.annotation.tailrec
import collection.JavaConversions._
import collection.mutable.{ Map, HashMap, Set, HashSet }
import net.sf.samtools._
import htsjdk.samtools._

object Assembler {
var K = 47
Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/org/broadinstitute/pilon/BamFile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package org.broadinstitute.pilon
import collection.mutable.Map
import java.io.File
import scala.collection.JavaConversions._
import net.sf.samtools._
import htsjdk.samtools._

object BamFile {
val indexSuffix = ".bai"
Expand All @@ -35,8 +35,8 @@ class BamFile(val bamFile: File, val bamType: Symbol) {
var baseCount: Long = 0

def reader = {
val r = new SAMFileReader(bamFile, new File(path + BamFile.indexSuffix))
r.setValidationStringency(SAMFileReader.ValidationStringency.SILENT)
//val r = new SAMFileReader(bamFile, new File(path + BamFile.indexSuffix))
val r = SamReaderFactory.makeDefault().validationStringency(ValidationStringency.SILENT).open(bamFile)
r
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/broadinstitute/pilon/GapFiller.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package org.broadinstitute.pilon

import collection.JavaConversions._
import collection.mutable.Map
import net.sf.samtools._
import htsjdk.samtools._


object GapFiller {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/broadinstitute/pilon/GenomeFile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import java.io.{File,PrintWriter,FileWriter,BufferedWriter}
import scala.collection.JavaConversions._
import scala.collection.mutable.Map
import scala.util.Random
import net.sf.picard.reference._
import htsjdk.samtools.reference._
import Utils._

class GenomeFile(val referenceFile: File, val targets : String = "") {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/broadinstitute/pilon/GenomeRegion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package org.broadinstitute.pilon

import collection.mutable.Map
import net.sf.picard.reference._
import htsjdk.samtools.reference._
import Utils._
import java.io.PrintWriter

Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/org/broadinstitute/pilon/PileUpRegion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package org.broadinstitute.pilon

import scala.collection.JavaConversions._
import net.sf.samtools._
import htsjdk.samtools._
import Utils._

class PileUpRegion(name: String, start: Int, stop: Int)
Expand All @@ -45,7 +45,7 @@ class PileUpRegion(name: String, start: Int, stop: Int)
}
}
}

def remove(locus: Int, base: Char, qual: Int, mq: Int,
pair: Boolean) = {
if (inRegion(locus)) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/broadinstitute/pilon/Pilon.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ object Pilon {
var strays = true
var threads = 1
var trSafe = true

// Global computed data
var novelContigs = List[String]()

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/broadinstitute/pilon/Scaffold.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ package org.broadinstitute.pilon

import scala.collection.JavaConversions._
import collection.mutable.{ Map, HashMap, Set, HashSet }
import net.sf.samtools._
import htsjdk.samtools._


class MatePair(r1: SAMRecord, r2: SAMRecord) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/broadinstitute/pilon/Tracks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package org.broadinstitute.pilon
import java.io._

import scala.collection.JavaConversions._
import net.sf.samtools._
import htsjdk.samtools._

class Tracks(val reference: GenomeFile, val prefix : String = "") {
def standardTracks = {
Expand Down

0 comments on commit 46e5761

Please sign in to comment.