Skip to content
Snippets Groups Projects
Commit 517d8d61 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Simplify write step

parent ed5a234d
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment