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
genotoul-bioinfo
ng6
Commits
278939c7
Commit
278939c7
authored
Jan 08, 2019
by
Maxime Manno
🍜
Browse files
Merge branch 'nG6_ont-qc_bug-and-visu' into 'master'
Update get-version :
#90
See merge request
!19
parents
e52960af
e1ae8519
Changes
1
Hide whitespace changes
Inline
Side-by-side
workflows/ont_qc/components/trimporechop.py
View file @
278939c7
...
...
@@ -124,10 +124,12 @@ class Trim_porechop (Analysis):
logging
.
getLogger
(
"jflow"
).
debug
(
"End Trimporechop.post_process! "
)
def
get_version
(
self
):
#os.system("module load bioinfo/Porechop-0.2.1")
cmd
=
[
self
.
get_exec_path
(
"porechop"
),
"--version"
]
shell_script
=
"module load compiler/gcc-7.2.0;module load bioinfo/Porechop-0.2.1;"
+
self
.
get_exec_path
(
"porechop"
)
+
" --version"
logging
.
getLogger
(
"jflow"
).
debug
(
"Trimporechop.get_version ! shell_script "
+
str
(
shell_script
))
cmd
=
[
"sh"
,
"-c"
,
shell_script
]
p
=
Popen
(
cmd
,
stdout
=
PIPE
,
stderr
=
PIPE
)
stdout
,
stderr
=
p
.
communicate
()
logging
.
getLogger
(
"jflow"
).
debug
(
"Trimporechop.get_version !"
+
str
(
stderr
))
return
stdout
def
process
(
self
):
...
...
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