From 823f5bc0496c940fc39c70493cd596ca9c139fea Mon Sep 17 00:00:00 2001 From: Martijn Vermaat <martijn@vermaat.name> Date: Thu, 29 Nov 2012 15:24:19 +0000 Subject: [PATCH] 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 --- mutalyzer/GenRecord.py | 4 ++-- mutalyzer/variantchecker.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mutalyzer/GenRecord.py b/mutalyzer/GenRecord.py index d06547ab..f0431ca2 100644 --- a/mutalyzer/GenRecord.py +++ b/mutalyzer/GenRecord.py @@ -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'): diff --git a/mutalyzer/variantchecker.py b/mutalyzer/variantchecker.py index 1125eed0..562c4d1e 100644 --- a/mutalyzer/variantchecker.py +++ b/mutalyzer/variantchecker.py @@ -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.?' -- GitLab