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

Added an exeption when lines has not the same columns as the header

parent cbd73126
......@@ -52,6 +52,7 @@ object SamplesTsvToJson extends ToolCommand {
val librariesValues: List[Map[String, Any]] = for (tsvLine <- lines.tail) yield {
val values = tsvLine.split("\t")
require(header.length == values.length, "Number columns is not the same as the header")
val sample = values(sampleColumn)
val library = if (libraryColumn != -1) Some(values(libraryColumn)) else None
if (sampleLibCache.contains((sample, library)))
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