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
Mutalyzer
mutalyzer2
Commits
eda541fb
Commit
eda541fb
authored
Dec 04, 2018
by
Mihai
Browse files
Improved message when specific locus incorrectly specified
parent
026a1a97
Changes
1
Hide whitespace changes
Inline
Side-by-side
mutalyzer/variantchecker.py
View file @
eda541fb
...
...
@@ -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.
...
...
@@ -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
)
...
...
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