From d56f8cd3c591c5d478aca4c316d47ed6ef433959 Mon Sep 17 00:00:00 2001
From: William McLaren <wm2@ebi.ac.uk>
Date: Wed, 20 Jan 2010 13:32:50 +0000
Subject: [PATCH] Fix to partial codon

---
 modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm b/modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm
index 1ac958ce37..740411ace5 100644
--- a/modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm
+++ b/modules/Bio/EnsEMBL/Utils/TranscriptAlleles.pm
@@ -329,7 +329,7 @@ sub type_variation {
 	
 	my $last_codon_length = length($cds) - ($codon_cds_start - 1);
 	
-	if($last_codon_length < 3 && $last_codon_length >= 0) {
+	if($last_codon_length < 3 && $last_codon_length > 0) {
 	  $var->type("PARTIAL_CODON");
 		
 	  # add the CDS coords
-- 
GitLab