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

Simplify write step

parent ed5a234d
......@@ -66,9 +66,7 @@ object SageCountFastq extends ToolCommand {
logger.info("Writting outputfile: " + commandArgs.output)
val writer = new PrintWriter(commandArgs.output)
for ((seq, count) <- sortedCounts) {
writer.println(seq + "\t" + count)
}
sortedCounts.foreach { case (seq, count) => writer.println(seq + "\t" + count) }
writer.close()
}
}
\ No newline at end of file
Supports Markdown
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