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

Added java match

parent b806eaec
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,7 @@ class GenerateIndexes(val root: Configurable) extends QScript with BiopetQScript
val fastaUris = genomeConfig.getOrElse("fasta_uri",
throw new IllegalArgumentException(s"No fasta_uri found for $speciesName - $genomeName")) match {
case a: Traversable[_] => a.map(_.toString).toArray
case a: util.ArrayList[_] => a.map(_.toString).toArray
case a => Array(a.toString)
}
......
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