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
D-GENIES
Commits
3fb26a2c
Commit
3fb26a2c
authored
Apr 10, 2018
by
Floreal Cabanettes
Browse files
Fix bug on get files from dir
parent
497bcc52
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dgenies/lib/job_manager.py
View file @
3fb26a2c
...
...
@@ -101,7 +101,8 @@ class JobManager:
with
open
(
query_file
)
as
q_f
:
file_path
=
q_f
.
readline
()
self
.
query
=
Fasta
(
name
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
file_path
.
replace
(
".gz"
,
""
)).
split
(
"_"
,
1
)[
1
])[
0
],
name
=
"target"
if
file_path
.
endswith
(
".idx"
)
else
os
.
path
.
splitext
(
os
.
path
.
basename
(
file_path
.
replace
(
".gz"
,
""
)).
split
(
"_"
,
1
)[
1
])[
0
],
path
=
file_path
,
type_f
=
"local"
)
...
...
@@ -110,7 +111,8 @@ class JobManager:
with
open
(
target_file
)
as
t_f
:
file_path
=
t_f
.
readline
()
self
.
target
=
Fasta
(
name
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
file_path
.
replace
(
".gz"
,
""
)).
split
(
"_"
,
1
)[
1
])[
0
],
name
=
"query"
if
file_path
.
endswith
(
".idx"
)
else
os
.
path
.
splitext
(
os
.
path
.
basename
(
file_path
.
replace
(
".gz"
,
""
)).
split
(
"_"
,
1
)[
1
])[
0
],
path
=
file_path
,
type_f
=
"local"
)
...
...
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