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
7d965e51
Commit
7d965e51
authored
Feb 06, 2018
by
Floreal Cabanettes
Browse files
Fix out filename
parent
364ac882
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dgenies/lib/paf.py
View file @
7d965e51
...
...
@@ -685,9 +685,7 @@ class Paf:
o_fasta
=
os
.
path
.
join
(
os
.
path
.
dirname
(
query_fasta
),
"as_reference_"
+
os
.
path
.
basename
(
query_fasta
))
if
o_fasta
.
endswith
(
".gz"
):
o_fasta
=
o_fasta
[:
-
3
]
if
os
.
path
.
exists
(
o_fasta
):
query_fasta
=
o_fasta
else
:
if
not
os
.
path
.
exists
(
o_fasta
):
uncompressed
=
False
if
query_fasta
.
endswith
(
".gz"
):
uncompressed
=
True
...
...
@@ -719,14 +717,13 @@ class Paf:
os
.
remove
(
query_fasta
)
status
=
"success"
except
Exception
:
o_fasta
=
None
o_fasta
=
"_._"
status
=
"fail"
query_fasta
=
"_._"
parts
=
os
.
path
.
basename
(
query
_fasta
).
rsplit
(
"."
,
1
)
parts
=
os
.
path
.
basename
(
o
_fasta
).
rsplit
(
"."
,
1
)
Functions
.
send_fasta_ready
(
mailer
=
self
.
mailer
,
job_name
=
self
.
id_job
,
sample_name
=
"as_reference_"
+
parts
[
0
],
sample_name
=
parts
[
0
],
ext
=
parts
[
1
],
compressed
=
False
,
path
=
"download"
,
...
...
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