Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mutalyzer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
mutalyzer
Commits
fa158a54
Commit
fa158a54
authored
9 years ago
by
Vermaat
Browse files
Options
Downloads
Patches
Plain Diff
Show filename of uploaded file in description extractor
parent
5a731c28
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mutalyzer/website/templates/description-extractor.html
+2
-2
2 additions, 2 deletions
mutalyzer/website/templates/description-extractor.html
mutalyzer/website/views.py
+6
-0
6 additions, 0 deletions
mutalyzer/website/views.py
with
8 additions
and
2 deletions
mutalyzer/website/templates/description-extractor.html
+
2
−
2
View file @
fa158a54
...
@@ -193,7 +193,7 @@ Please supply a reference sequence and an observed sequence.
...
@@ -193,7 +193,7 @@ Please supply a reference sequence and an observed sequence.
{% if reference_method == 'raw_method' %}
{% if reference_method == 'raw_method' %}
<code>
{{ reference_sequence|short(40) }}
</code>
<code>
{{ reference_sequence|short(40) }}
</code>
{% elif reference_method == 'file_method' %}
{% elif reference_method == 'file_method' %}
File upload
{{ reference_filename|default('File upload', true) }}
{% elif reference_method == 'refseq_method' %}
{% elif reference_method == 'refseq_method' %}
{{ reference_accession_number }}
{{ reference_accession_number }}
{% endif %}
{% endif %}
...
@@ -205,7 +205,7 @@ Please supply a reference sequence and an observed sequence.
...
@@ -205,7 +205,7 @@ Please supply a reference sequence and an observed sequence.
{% if sample_method == 'raw_method' %}
{% if sample_method == 'raw_method' %}
<code>
{{ sample_sequence|short(40) }}
</code>
<code>
{{ sample_sequence|short(40) }}
</code>
{% elif sample_method == 'file_method' %}
{% elif sample_method == 'file_method' %}
File upload
{{ sample_filename|default('File upload', true) }}
{% elif sample_method == 'refseq_method' %}
{% elif sample_method == 'refseq_method' %}
{{ sample_accession_number }}
{{ sample_accession_number }}
{% endif %}
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
mutalyzer/website/views.py
+
6
−
0
View file @
fa158a54
...
@@ -727,6 +727,8 @@ def description_extractor_submit():
...
@@ -727,6 +727,8 @@ def description_extractor_submit():
sample_sequence
=
request
.
form
.
get
(
'
sample_sequence
'
)
sample_sequence
=
request
.
form
.
get
(
'
sample_sequence
'
)
reference_file
=
request
.
files
.
get
(
'
reference_file
'
)
reference_file
=
request
.
files
.
get
(
'
reference_file
'
)
sample_file
=
request
.
files
.
get
(
'
sample_file
'
)
sample_file
=
request
.
files
.
get
(
'
sample_file
'
)
reference_filename
=
''
sample_filename
=
''
reference_accession_number
=
request
.
form
.
get
(
'
reference_accession_number
'
)
reference_accession_number
=
request
.
form
.
get
(
'
reference_accession_number
'
)
sample_accession_number
=
request
.
form
.
get
(
'
sample_accession_number
'
)
sample_accession_number
=
request
.
form
.
get
(
'
sample_accession_number
'
)
...
@@ -741,6 +743,7 @@ def description_extractor_submit():
...
@@ -741,6 +743,7 @@ def description_extractor_submit():
'
Reference accession number input fields is empty.
'
)
'
Reference accession number input fields is empty.
'
)
elif
reference_method
==
'
file_method
'
:
elif
reference_method
==
'
file_method
'
:
if
reference_file
:
if
reference_file
:
reference_filename
=
reference_file
.
filename
r
=
util
.
read_dna
(
reference_file
)
r
=
util
.
read_dna
(
reference_file
)
else
:
else
:
output
.
addMessage
(
__file__
,
3
,
'
EEMPTYFIELD
'
,
output
.
addMessage
(
__file__
,
3
,
'
EEMPTYFIELD
'
,
...
@@ -763,6 +766,7 @@ def description_extractor_submit():
...
@@ -763,6 +766,7 @@ def description_extractor_submit():
'
Sample accession number input fields is empty.
'
)
'
Sample accession number input fields is empty.
'
)
elif
sample_method
==
'
file_method
'
:
elif
sample_method
==
'
file_method
'
:
if
sample_file
:
if
sample_file
:
sample_filename
=
sample_file
.
filename
s
=
util
.
read_dna
(
sample_file
)
s
=
util
.
read_dna
(
sample_file
)
else
:
else
:
output
.
addMessage
(
__file__
,
3
,
'
EEMPTYFIELD
'
,
output
.
addMessage
(
__file__
,
3
,
'
EEMPTYFIELD
'
,
...
@@ -801,6 +805,8 @@ def description_extractor_submit():
...
@@ -801,6 +805,8 @@ def description_extractor_submit():
sample_sequence
=
sample_sequence
or
''
,
sample_sequence
=
sample_sequence
or
''
,
reference_accession_number
=
reference_accession_number
or
''
,
reference_accession_number
=
reference_accession_number
or
''
,
sample_accession_number
=
sample_accession_number
or
''
,
sample_accession_number
=
sample_accession_number
or
''
,
reference_filename
=
reference_filename
or
''
,
sample_filename
=
sample_filename
or
''
,
raw_vars
=
raw_vars
,
errors
=
errors
,
summary
=
summary
,
messages
=
messages
,
raw_vars
=
raw_vars
,
errors
=
errors
,
summary
=
summary
,
messages
=
messages
,
reference_method
=
reference_method
,
sample_method
=
sample_method
)
reference_method
=
reference_method
,
sample_method
=
sample_method
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment