Open LobachevDanil opened 3 years ago
I have already changed the language, I feel great!
package org.broadinstitute.pilon
import collection.mutable.{ HashMap, HashSet }
import htsjdk.samtools._
object Assembler {
var K = 47
val minDepth = 5
val minExtend = 20
val maxBranches = 5
val minNovel = 200
val minNovelPct = 50
type Kmer = String
type KmerPileup = HashMap[Kmer, PileUp]
type KmerGraph = HashMap[Kmer, Kmer]
}
class Assembler(val minDepth: Int = Assembler.minDepth) {
import Assembler._
var pileups: KmerPileup = HashMap()
val kGraph: KmerGraph = HashMap()
val altGraph: KmerGraph = HashMap()
var nReads: Long = 0
var nBases: Long = 0
var loopLength = 0
var loopSequence = ""
def addReads(reads: List[SAMRecord]) = {
reads foreach addRead
}
}
Здравствуйте, я из компании орифлейм! I think your project lacks functionality. (functional programming, if you know what I mean:)) So I added the following code as a great reference