Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
biopet.biopet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Mirrors
biopet.biopet
Commits
0d5df191
Commit
0d5df191
authored
Nov 08, 2015
by
Peter van 't Hof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed jobOutputFile
parent
10524ce8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetQScript.scala
...c/main/scala/nl/lumc/sasc/biopet/core/BiopetQScript.scala
+12
-5
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/CommandLineResources.scala
...scala/nl/lumc/sasc/biopet/core/CommandLineResources.scala
+0
-3
No files found.
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/BiopetQScript.scala
View file @
0d5df191
...
...
@@ -78,6 +78,13 @@ trait BiopetQScript extends Configurable with GatkLogging {
case
f
:
ScatterGatherableFunction
=>
f
.
scatterCount
=
1
case
_
=>
}
this
match
{
case
q
:
MultiSampleQScript
if
q.onlySamples.nonEmpty
&&
!q.samples.forall
(
x
=>
q.onlySamples.contains
(
x.
_
1
))
=>
logger
.
info
(
"Write report is skipped because sample flag is used"
)
case
_
=>
reportClass
.
foreach
(
add
(
_
))
}
for
(
function
<-
functions
)
function
match
{
case
f
:
BiopetCommandLineFunction
=>
f
.
preProcessExecutable
()
...
...
@@ -96,11 +103,11 @@ trait BiopetQScript extends Configurable with GatkLogging {
else
if
(!
i
.
file
.
canRead
())
Logging
.
addError
(
s
"Input file can not be read: ${i.file}"
)
}
this
match
{
case
q
:
MultiSampleQScript
if
q.onlySamples.nonEmpty
&&
!q.samples.forall
(
x
=>
q.onlySamples.contains
(
x.
_
1
))
=>
logger
.
info
(
"Write report is skipped because sample flag is used
"
)
case
_
=>
reportClass
.
foreach
(
add
(
_
)
)
}
functions
.
filter
(
_
.
jobOutputFile
==
null
).
foreach
(
f
=>
{
if
(
f
.
jobOutputFile
==
null
&&
f
.
firstOutput
!=
null
)
f
.
jobOutputFile
=
new
File
(
f
.
firstOutput
.
getAbsoluteFile
.
getParent
,
"."
+
f
.
firstOutput
.
getName
+
"."
+
configName
+
".out
"
)
else
throw
new
IllegalStateException
(
s
"Can't generate a jobOutputFile for $f"
)
}
)
if
(
logger
.
isDebugEnabled
)
WriteDependencies
.
writeDependencies
(
functions
,
new
File
(
outputDir
,
s
".log/${qSettings.runName}.deps.json"
))
...
...
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/CommandLineResources.scala
View file @
0d5df191
...
...
@@ -58,9 +58,6 @@ trait CommandLineResources extends CommandLineFunction with Configurable {
case
e
:
NullPointerException
=>
null
}
if
(
jobOutputFile
==
null
&&
firstOutput
!=
null
)
jobOutputFile
=
new
File
(
firstOutput
.
getAbsoluteFile
.
getParent
,
"."
+
firstOutput
.
getName
+
"."
+
configName
+
".out"
)
nCoresRequest
=
Option
(
threads
)
/** The 1e retry does not yet upgrade the memory */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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