Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve user feedback #459

Merged
merged 3 commits into from
Dec 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extras/soap-tools/sp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Example SOAP client for the Mutalyzer web service in Python using the
# SOAPpy library.
#
# See http://www.mutalyzer.nl/2.0/webservices
# See https://mutalyzer.nl/webservices
#
# Usage:
# python sp.py
Expand Down
27 changes: 21 additions & 6 deletions mutalyzer/variantchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1605,12 +1605,25 @@ def process_variant(mutator, description, record, output):
# Todo: message?
gene = record.record.geneList[0]
else:
output.addMessage(__file__, 4, "EINVALIDGENE",
"No gene specified. Please choose from: %s" % ", ".join(genes))
if len(genes) < 10:
output.addMessage(__file__, 4, "EINVALIDGENE",
"No gene specified. Please choose from: %s" %
", ".join(genes))
else:
output.addMessage(__file__, 4, "EINVALIDGENE",
"No gene specified. Specify one of the %s genes "
"that are present the reference." % len(genes))

else:
output.addMessage(__file__, 4, "EINVALIDGENE",
"Gene %s not found. Please choose from: %s" % (
gene_symbol, ", ".join(genes)))
if len(genes) < 10:
output.addMessage(__file__, 4, "EINVALIDGENE",
"Gene %s not found. Please choose from: %s" % (
gene_symbol, ", ".join(genes)))
else:
output.addMessage(__file__, 4, "EINVALIDGENE",
"Gene %s not found. Specify one of the %s genes that "
"are present in the reference. " % (
gene_symbol, len(genes)))

if gene:
# Find transcript.
Expand Down Expand Up @@ -1799,7 +1812,9 @@ def check_variant(description, output):
gene_symbol, transcript_id = transcript_info
else:
output.addMessage(__file__, 4, 'EINVALIDTRANSVAR',
'Invalid name for transcript variant identifier.')
'%s is not annotated on %s.' % (
'.'.join(parsed_description.AccNoTransVar),
record_id))

# Add recordType to output for output formatting.
output.addOutput('recordType', filetype)
Expand Down
2 changes: 1 addition & 1 deletion mutalyzer/website/templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h2>Open Source</h2>

<p>
Contributions to Mutalyzer are very welcome! They can be feature requests, bug
reports, bug fixes, unit tests, documentation updates, or anything els you may
reports, bug fixes, unit tests, documentation updates, or anything else you may
come up with.
</p>

Expand Down