From 1cd31294b80df70fdab195d727ac9111b0da36e8 Mon Sep 17 00:00:00 2001
From: Martijn Vermaat <martijn@vermaat.name>
Date: Fri, 27 Jan 2012 15:44:25 +0000
Subject: [PATCH] Use more descriptive error messages in position converter
 (#85)

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@463 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
---
 mutalyzer/mapping.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/mutalyzer/mapping.py b/mutalyzer/mapping.py
index a9ba1b60..c9025f93 100644
--- a/mutalyzer/mapping.py
+++ b/mutalyzer/mapping.py
@@ -166,8 +166,8 @@ class Converter(object) :
         versions = self.__database.get_NM_version(acc)
         if not versions :
             self.__output.addMessage(__file__, 4, "EACCNOTINDB",
-                    "The accession number: %s could not be "
-                    "found in our database." % acc)
+                    "The accession number %s could not be "
+                    "found in our database (or is not a transcript)." % acc)
             self.__output.addOutput("LOVDERR",
                     "Reference sequence not found.")
             return None     #Explicit return of None in case of error
@@ -182,8 +182,8 @@ class Converter(object) :
                     "Version number missing for %s" % acc)
             else :
                 self.__output.addMessage(__file__, 4, "EACCNOTINDB",
-                    "The accession number: %s version %s "
-                    "could not be found in our database." %
+                    "The accession number %s version %s "
+                    "could not be found in our database (or is not a transcript)." %
                     (acc, version))
             self.__output.addMessage(__file__, 2, "WDIFFFOUND",
                 "We found these versions: %s" %
@@ -510,7 +510,7 @@ class Converter(object) :
             chrom = self.__database.chromAcc(preco)
             if chrom is None :
                 self.__output.addMessage(__file__, 4, "ENOTINDB",
-                    "Chromosome %s could not be found in our database" %
+                    "The accession number %s could not be found in our database (or is not a chromosome)." %
                     preco)
                 return None
             #if
@@ -542,7 +542,7 @@ class Converter(object) :
         chrom = self.__database.chromName("%s.%s" % (acc, version))
         if not chrom :
             self.__output.addMessage(__file__, 4, "ENOTINDB",
-                    "Accession number: %s could not be found in our database" %
+                "The Accession number %s could not be found in our database (or is not a chromosome)." %
                 acc)
             return None
         #if
-- 
GitLab