From 3a3caf6272b60b5aa11c82bb7150435e9fbcea26 Mon Sep 17 00:00:00 2001
From: Ian Longden <ianl@sanger.ac.uk>
Date: Wed, 9 Aug 2006 14:17:53 +0000
Subject: [PATCH] Unigene no longer gotten from uniprot as it now has its own
 file

---
 misc-scripts/xref_mapping/XrefParser/UniProtParser.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm b/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
index 883a428a55..8ae9fd9133 100644
--- a/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
+++ b/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
@@ -259,7 +259,9 @@ sub create_xrefs {
     my ($deps) = $_ =~ /(DR\s+.+)/s; # /s allows . to match newline
       my @dep_lines = split /\n/, $deps;
     foreach my $dep (@dep_lines) {
-      if($dep =~ /GO/){
+      #both GO and UniGene have the own sources so ignore those in the uniprot files
+      #as the uniprot data should be older
+      if($dep =~ /GO/ || $dep =~ /UniGene/){
 	next;
       }
       if ($dep =~ /^DR\s+(.+)/) {
-- 
GitLab