Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
1b0093ff
Commit
1b0093ff
authored
Sep 22, 2015
by
Peter van 't Hof
Browse files
Added a sum of memory and threads
parent
71426017
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetPipe.scala
View file @
1b0093ff
...
...
@@ -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
=
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment