Commit 1b0093ff authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added a sum of memory and threads

parent 71426017
......@@ -42,10 +42,11 @@ class BiopetPipe(val commands: List[BiopetCommandLineFunction]) extends BiopetCo
val inputOutput = input.filter(x => output.contains(x))
require(inputOutput.isEmpty, "File found as input and output in the same job, files: " + inputOutput.mkString(", "))
threads = commands.map(x => if (x.threads > 0) x.threads else 0).sum
}
override def defaultCoreMemory = commands.map(_.defaultCoreMemory).sum
override def defaultThreads = commands.map(_.defaultThreads).sum
val root: Configurable = commands.head.root
override def configName = commands.map(_.configName).mkString("-")
def cmdLine: String = {
......
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