From 137474bdd58f414f67172218a9fa422d786d3452 Mon Sep 17 00:00:00 2001
From: Martijn Vermaat <martijn@vermaat.name>
Date: Mon, 26 Nov 2012 12:57:06 +0000
Subject: [PATCH] Have separate WCDS and WCDSSELECTED codes (#98)

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@641 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
---
 mutalyzer/variantchecker.py | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/mutalyzer/variantchecker.py b/mutalyzer/variantchecker.py
index 5befb9cd..1125eed0 100644
--- a/mutalyzer/variantchecker.py
+++ b/mutalyzer/variantchecker.py
@@ -1690,10 +1690,16 @@ def check_variant(description, output):
                     transcript.proteinDescription = 'p.?'
 
             else:
-                output.addMessage(__file__, 2, "ECDS", "CDS length is " \
-                    "not a multiple of three in gene %s, transcript " \
-                    "variant %s." % (gene.name, transcript.name))
-                transcript.proteinDescription = 'p.?'
+                if transcript.current:
+                    output.addMessage(__file__, 2, "WCDSSELECTED", "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 " \
+                        "not a multiple of three in gene %s, transcript " \
+                        "variant %s." % (gene.name, transcript.name))
+                    transcript.proteinDescription = 'p.?'
 
     reference = output.getOutput('reference')[-1]
     if ';' in record.record.description:
-- 
GitLab