Skip to content
GitLab
Menu
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
a278b762
Commit
a278b762
authored
Mar 22, 2017
by
Peter van 't Hof
Browse files
Fixing stats output file
(cherry picked from commit 54d5384)
parent
75e08dec
Changes
1
Show whitespace changes
Inline
Side-by-side
flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/QcCommand.scala
View file @
a278b762
...
...
@@ -47,9 +47,7 @@ class QcCommand(val parent: Configurable, val fastqc: Fastqc, val read: String)
val
seqtk
=
new
SeqtkSeq
(
parent
)
var
clip
:
Option
[
Cutadapt
]
=
if
(!
flexiprep
.
skipClip
)
Some
(
new
Cutadapt
(
parent
,
fastqc
))
else
None
var
trim
:
Option
[
Sickle
]
=
if
(!
flexiprep
.
skipTrim
)
{
val
sickle
=
new
Sickle
(
parent
)
sickle
.
outputStats
=
new
File
(
flexiprep
.
outputDir
,
s
"${flexiprep.sampleId.getOrElse("
x
")}-${flexiprep.libId.getOrElse("
x
")}.$read.trim.stats"
)
Some
(
sickle
)
Some
(
new
Sickle
(
root
))
}
else
None
lazy
val
outputCommand
:
BiopetCommandLineFunction
=
if
(
compress
)
{
...
...
@@ -136,6 +134,7 @@ class QcCommand(val parent: Configurable, val fastqc: Fastqc, val read: String)
case
Some
(
c
)
=>
c
.
fastqOutput
case
_
=>
seqtk
.
output
}
t
.
outputStats
=
new
File
(
output
.
getParentFile
,
s
"${flexiprep.sampleId.getOrElse("
x
")}-${flexiprep.libId.getOrElse("
x
")}.$read.trim.stats"
)
addPipeJob
(
t
)
}
...
...
@@ -170,7 +169,6 @@ class QcCommand(val parent: Configurable, val fastqc: Fastqc, val read: String)
case
_
=>
new
BiopetFifoPipe
(
parent
,
seqtk
::
outputCommand
::
Nil
)
}
//val cmds = (Some(seqtk) :: clip :: trim :: Some(new Gzip(root)) :: Nil).flatten
cmd
.
beforeGraph
()
cmd
.
commandLine
}
...
...
Write
Preview
Supports
Markdown
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