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
6af00416
Commit
6af00416
authored
Oct 19, 2015
by
bow
Browse files
Use provided exts Set instead of zipExtensions
parent
90eaaf09
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/Flexiprep.scala
View file @
6af00416
...
...
@@ -90,11 +90,10 @@ class Flexiprep(val root: Configurable) extends QScript with SummaryQScript with
* @return Filename without compression extension.
*/
private
def
getUncompressedName
(
f
:
File
,
exts
:
Set
[
String
]
=
zipExtensions
)
:
String
=
zipExtensions
.
foldLeft
(
f
.
toString
)
{
case
(
fname
,
ext
)
=>
if
(
fname
.
toLowerCase
.
endsWith
(
ext
))
fname
.
dropRight
(
ext
.
length
)
else
fname
}
exts
.
foldLeft
(
f
.
toString
)
{
case
(
fname
,
ext
)
=>
if
(
fname
.
toLowerCase
.
endsWith
(
ext
))
fname
.
dropRight
(
ext
.
length
)
else
fname
}
/** Function that's need to be executed before the script is accessed */
def
init
()
{
...
...
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