Commit fb27385e authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Convert vars to vals

parent 039c58a9
......@@ -155,7 +155,7 @@ object BamStats extends ToolCommand {
* @return Output stats
*/
def processThread(scatters: List[BedRecord], bamFile: File): Stats = {
var totalStats = Stats()
val totalStats = Stats()
val sortedScatters = scatters.sortBy(_.start)
val samReader = SamReaderFactory.makeDefault().open(bamFile)
val threadChr = sortedScatters.head.chr
......@@ -206,7 +206,7 @@ object BamStats extends ToolCommand {
* @return Output stats
*/
def processUnmappedReads(bamFile: File): Stats = {
var stats = Stats()
val stats = Stats()
val samReader = SamReaderFactory.makeDefault().open(bamFile)
var size = samReader.queryUnmapped().size
stats.totalReads += size
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment