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
9c692ecf
Commit
9c692ecf
authored
Apr 24, 2017
by
pjvan_thof
Browse files
Fixed md5 output files
parent
f1d8cf79
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/SummaryQScript.scala
View file @
9c692ecf
...
...
@@ -134,12 +134,13 @@ trait SummaryQScript extends BiopetQScript { qscript: QScript =>
required
(
"echo"
)
+
required
(
"error_on_capture "
+
input
.
toString
)
+
" > "
+
required
(
output
)
}
md5sum
.
input
=
file
md5sum
.
output
=
new
File
(
file
.
getParentFile
,
file
.
getName
+
".md5"
)
md5sum
.
jobOutputFile
=
new
File
(
file
.
getParentFile
,
s
".${file.getName}.md5.md5sum.out"
)
// Need to not write a md5 file outside the outputDir
if
(!
file
.
getAbsolutePath
.
startsWith
(
outputDir
.
getAbsolutePath
))
md5sum
.
output
=
new
File
(
outputDir
,
".md5"
+
file
.
getAbsolutePath
+
".md5"
)
md5sum
.
output
=
if
(
file
.
getAbsolutePath
.
startsWith
(
outputDir
.
getAbsolutePath
))
new
File
(
file
.
getParentFile
,
file
.
getName
+
".md5"
)
else
{
// Need to not write a md5 file outside the outputDir
new
File
(
outputDir
,
".md5"
+
file
.
getAbsolutePath
+
".md5"
)
}
md5sum
.
jobOutputFile
=
new
File
(
md5sum
.
output
.
getParentFile
,
s
".${file.getName}.md5.md5sum.out"
)
writeSummary
.
deps
:+=
md5sum
.
output
SummaryQScript
.
md5sumCache
+=
file
->
md5sum
.
output
...
...
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