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

Accept multiple input files

parent 750259c1
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,8 @@ import scala.collection.JavaConversions._
class GenerateIndexes(val root: Configurable) extends QScript with BiopetQScript {
def this() = this(null)
@Argument
var referenceConfigFile: File = _
@Argument(required = true)
var referenceConfigFiles: List[File] = Nil
var referenceConfig: Map[String, Any] = Map()
......@@ -48,7 +48,7 @@ class GenerateIndexes(val root: Configurable) extends QScript with BiopetQScript
/** This is executed before the script starts */
def init(): Unit = {
referenceConfig = ConfigUtils.fileToConfigMap(referenceConfigFile)
referenceConfig = referenceConfigFiles.foldLeft(Map[String, Any]())((a,b) => ConfigUtils.mergeMaps(a, ConfigUtils.fileToConfigMap(b)))
}
/** Method where jobs must be added */
......
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