From 0af3e239ea8061baafbb7c1f3efddd89c753083f Mon Sep 17 00:00:00 2001
From: Glenn Proctor <gp1@sanger.ac.uk>
Date: Wed, 21 Sep 2005 13:47:33 +0000
Subject: [PATCH] Modify gene description priority list so we get
 Anopheles_symbol descriptions in preference to anything else if they're
 there.

---
 .../xref_mapping/XrefMapper/anopheles_gambiae.pm  | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/misc-scripts/xref_mapping/XrefMapper/anopheles_gambiae.pm b/misc-scripts/xref_mapping/XrefMapper/anopheles_gambiae.pm
index 03c407303a..156f530fb5 100644
--- a/misc-scripts/xref_mapping/XrefMapper/anopheles_gambiae.pm
+++ b/misc-scripts/xref_mapping/XrefMapper/anopheles_gambiae.pm
@@ -12,9 +12,22 @@ sub get_set_lists {
 
 }
 
-# transcript, gene display_xrefs and descriptions can use defaults
+# transcript, gene display_xrefs can use defaults
 # since anopheles_symbol is "before" Uniprot
 
+# If there is an Anopheles_symbol xref, use its description
+sub gene_description_sources {
+
+  return ("RefSeq_dna_predicted",
+	  "RefSeq_peptide_predicted",
+	  "Uniprot/SPTREMBL",
+	  "RefSeq_dna",
+	  "RefSeq_peptide",
+	  "Uniprot/SWISSPROT",
+	  "Anopheles_symbol");
+
+}
+
 # regexps to match any descriptons we want to filter out
 sub gene_description_filter_regexps {
 
-- 
GitLab