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
4fb8a7b6
Commit
4fb8a7b6
authored
Apr 18, 2017
by
Peter van 't Hof
Committed by
GitHub
Apr 18, 2017
Browse files
Merge pull request #82 from biopet/Fix-BIOPET-572
Change default file name from "R1" to "sampleName - libName"
parents
0140969c
58d71f66
Changes
2
Hide whitespace changes
Inline
Side-by-side
gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/GearsSingle.scala
View file @
4fb8a7b6
...
...
@@ -56,12 +56,7 @@ class GearsSingle(val parent: Configurable) extends QScript with SummaryQScript
if
(
sampleId
==
null
||
sampleId
==
None
)
Logging
.
addError
(
"Missing sample ID on GearsSingle module"
)
if
(
outputName
==
null
)
{
if
(
fastqR1
.
nonEmpty
)
outputName
=
fastqR1
.
headOption
.
map
(
_
.
getName
.
stripSuffix
(
".gz"
)
.
stripSuffix
(
".fastq"
)
.
stripSuffix
(
".fq"
))
.
getOrElse
(
"noName"
)
else
outputName
=
bamFile
.
map
(
_
.
getName
.
stripSuffix
(
".bam"
)).
getOrElse
(
"noName"
)
outputName
=
sampleId
.
getOrElse
(
"noName"
)
+
libId
.
map
(
"-"
+
_
).
getOrElse
(
""
)
}
if
(
fastqR1
.
nonEmpty
)
{
...
...
gears/src/test/scala/nl/lumc/sasc/biopet/pipelines/gears/GearsSingleTest.scala
View file @
4fb8a7b6
...
...
@@ -108,7 +108,7 @@ abstract class TestGearsSingle extends TestNGSuite with Matchers {
gears
.
outputName
shouldBe
"test"
}
else
{
// in the following cases the filename should have been determined by the filename
gears
.
outputName
shouldBe
(
if
(
inputMode
==
Some
(
"bam"
))
"bamfile"
else
"R1"
)
gears
.
outputName
shouldBe
"sampleName-libName"
}
val
pipesJobs
=
gears
.
functions
.
filter
(
_
.
isInstanceOf
[
BiopetCommandLineFunction
])
...
...
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