Commit 823f5bc0 authored by Vermaat's avatar Vermaat
Browse files

Rename some warning codes

Changed codes:

    WCDSSELECTED    -> WCDS
    WCDS            -> WCDS_OTHER
    WSPLICESELECTED -> WSPLICE
    WSPLICE         -> WSPLICE_OTHER


git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@644 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent be574870
......@@ -824,10 +824,10 @@ class GenRecord() :
# It should be easy for SOAP clients to filter out all warnings
# related to other transcripts, so we use two codes here.
if transcript.current:
warning = 'WSPLICESELECTED'
warning = 'WSPLICE'
str_transcript = 'transcript %s (selected)' % transcript.name
else:
warning = 'WSPLICE'
warning = 'WSPLICE_OTHER'
str_transcript = 'transcript %s' % transcript.name
if intronPos <= config.get('spliceAlarm'):
......
......@@ -1691,12 +1691,12 @@ def check_variant(description, output):
else:
if transcript.current:
output.addMessage(__file__, 2, "WCDSSELECTED", "CDS length is " \
output.addMessage(__file__, 2, "WCDS", "CDS length is " \
"not a multiple of three in gene %s, transcript " \
"variant %s (selected)." % (gene.name, transcript.name))
transcript.proteinDescription = 'p.?'
else:
output.addMessage(__file__, 2, "WCDS", "CDS length is " \
output.addMessage(__file__, 2, "WCDS_OTHER", "CDS length is " \
"not a multiple of three in gene %s, transcript " \
"variant %s." % (gene.name, transcript.name))
transcript.proteinDescription = 'p.?'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment