Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Maintenance - Mise à jour mensuelle Lundi 6 Février entre 7h00 et 9h00
Open sidebar
genotoul-bioinfo
ng6
Commits
20a5cb5b
Commit
20a5cb5b
authored
Jun 26, 2014
by
Penom Nom
Browse files
Add new '-z' option and fix bug with rerun.
parent
ed2d3c72
Changes
1
Hide whitespace changes
Inline
Side-by-side
workflows/components/flash.py
View file @
20a5cb5b
...
...
@@ -152,16 +152,6 @@ class Flash (Analysis):
return
stdout
.
split
()[
1
]
def
process
(
self
):
# Creates list for temporary uncompressed files
tmp_extended_frags
=
self
.
get_outputs
(
'{basename_woext}.extendedFrags.fastq'
,
self
.
prefixes
)
tmp_not_combined_read_1
=
self
.
get_outputs
(
'{basename_woext}.notCombined_1.fastq'
,
self
.
prefixes
)
tmp_not_combined_read_2
=
self
.
get_outputs
(
'{basename_woext}.notCombined_2.fastq'
,
self
.
prefixes
)
# Join pairs
for
i
in
range
(
0
,
len
(
self
.
prefixes
)):
flash
=
ShellFunction
(
self
.
get_exec_path
(
"flash"
)
+
" $1 $2 "
+
self
.
options
+
" -o "
+
os
.
path
.
basename
(
self
.
prefixes
[
i
])
+
" -d "
+
self
.
output_directory
+
" 2> $3"
,
cmd_format
=
'{EXE} {IN} {OUT}'
)
flash
(
inputs
=
[
self
.
read1_files
[
i
],
self
.
read2_files
[
i
]],
outputs
=
[
self
.
stderrs
[
i
],
tmp_extended_frags
[
i
],
tmp_not_combined_read_1
[
i
],
tmp_not_combined_read_2
[
i
]])
# Compress files
compress
=
ShellFunction
(
"gzip $1 $2 $3"
,
cmd_format
=
'{EXE} {IN} {OUT}'
)
compress
=
MultiMap
(
compress
,
inputs
=
[
tmp_extended_frags
,
tmp_not_combined_read_1
,
tmp_not_combined_read_2
],
outputs
=
[
self
.
extended_frags
,
self
.
not_combined_read_1
,
self
.
not_combined_read_2
])
\ No newline at end of file
flash
=
ShellFunction
(
self
.
get_exec_path
(
"flash"
)
+
" -z $1 $2 "
+
self
.
options
+
" -o "
+
os
.
path
.
basename
(
self
.
prefixes
[
i
])
+
" -d "
+
self
.
output_directory
+
" 2> $3"
,
cmd_format
=
'{EXE} {IN} {OUT}'
)
flash
(
inputs
=
[
self
.
read1_files
[
i
],
self
.
read2_files
[
i
]],
outputs
=
[
self
.
stderrs
[
i
],
self
.
extended_frags
[
i
],
self
.
not_combined_read_1
[
i
],
self
.
not_combined_read_2
[
i
]]
)
\ No newline at end of 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