From ceb7bf0ad503bca2c8aa84ff7386186ab2084a2e Mon Sep 17 00:00:00 2001 From: Glenn Proctor <gp1@sanger.ac.uk> Date: Thu, 21 May 2009 13:01:49 +0000 Subject: [PATCH] Proper check for HGNC_* when deciding whether to overwrite XP-named genes in target. --- misc-scripts/xref_projection/project_display_xrefs.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc-scripts/xref_projection/project_display_xrefs.pl b/misc-scripts/xref_projection/project_display_xrefs.pl index e054dce441..40b9aa847e 100644 --- a/misc-scripts/xref_projection/project_display_xrefs.pl +++ b/misc-scripts/xref_projection/project_display_xrefs.pl @@ -602,8 +602,8 @@ sub check_overwrite_display_xref { if ($to_dbname eq "RefSeq_dna_predicted" || $to_dbname eq "RefSeq_peptide_predicted") { - if (($from_species eq "human" && $from_dbname eq "HGNC") || - ($from_species eq "mouse" && $from_dbname eq "MarkerSymbol")) { + if (($from_species eq "human" && $from_dbname =~ /HGNC/) || + ($from_species eq "mouse" && $from_dbname =~ /MarkerSymbol/)) { return 1; -- GitLab