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
e4baa723
Commit
e4baa723
authored
Mar 27, 2017
by
Peter van 't Hof
Browse files
Fixing pipe command
parent
62878275
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-extensions/src/main/scala/nl/lumc/sasc/biopet/extensions/samtools/SamtoolsView.scala
View file @
e4baa723
...
...
@@ -36,19 +36,16 @@ class SamtoolsView(val root: Configurable) extends Samtools {
@Input
(
required
=
false
)
var
L
:
Option
[
File
]
=
None
def
cmd
Bas
e
=
required
(
executable
)
+
def
cmd
Lin
e
=
required
(
executable
)
+
required
(
"view"
)
+
optional
(
"-q"
,
q
)
+
optional
(
"-L"
,
L
)
+
repeat
(
"-f"
,
f
)
+
repeat
(
"-F"
,
F
)
+
conditional
(
b
,
"-b"
)
+
conditional
(
h
,
"-h"
)
def
cmdPipeInput
=
cmdBase
+
"-"
def
cmdPipe
=
cmdBase
+
required
(
input
)
/** Returns command to execute */
def
cmdLine
=
cmdPipe
+
" > "
+
required
(
output
)
conditional
(
h
,
"-h"
)
+
(
if
(
inputAsStdin
)
"-"
else
required
(
input
))
+
(
if
(
outputAsStsout
)
""
else
" > "
+
required
(
output
))
}
object
SamtoolsView
{
...
...
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