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
974156b3
Commit
974156b3
authored
Oct 28, 2015
by
Peter van 't Hof
Browse files
Fixed md5 check
parent
21d64302
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/SummaryQScript.scala
View file @
974156b3
...
...
@@ -116,20 +116,6 @@ trait SummaryQScript extends BiopetQScript { qscript =>
//TODO: add more checksums types
}
for
(
inputFile
<-
inputFiles
)
{
inputFile
.
md5
match
{
case
Some
(
checksum
)
=>
{
val
checkMd5
=
new
CheckChecksum
checkMd5
.
inputFile
=
inputFile
.
file
require
(
SummaryQScript
.
md5sumCache
.
contains
(
inputFile
.
file
),
"Md5 job is not executed, checksum file can't be found"
)
checkMd5
.
checksumFile
=
SummaryQScript
.
md5sumCache
(
inputFile
.
file
)
checkMd5
.
checksum
=
checksum
add
(
checkMd5
)
}
case
_
=>
}
}
for
((
_
,
summarizableList
)
<-
summarizables
;
summarizable
<-
summarizableList
)
{
summarizable
match
{
case
f
:
BiopetCommandLineFunction
=>
f
.
beforeGraph
()
...
...
@@ -146,6 +132,21 @@ trait SummaryQScript extends BiopetQScript { qscript =>
}
}
for
(
inputFile
<-
inputFiles
)
{
inputFile
.
md5
match
{
case
Some
(
checksum
)
=>
{
val
checkMd5
=
new
CheckChecksum
checkMd5
.
inputFile
=
inputFile
.
file
require
(
SummaryQScript
.
md5sumCache
.
contains
(
inputFile
.
file
),
s
"Md5 job is not executed, checksum file can't be found for: ${inputFile.file}"
)
checkMd5
.
checksumFile
=
SummaryQScript
.
md5sumCache
(
inputFile
.
file
)
checkMd5
.
checksum
=
checksum
add
(
checkMd5
)
}
case
_
=>
}
}
for
((
_
,
file
)
<-
this
.
summaryFiles
)
addChecksum
(
file
)
...
...
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