diff --git a/misc-scripts/xref_projection/project_display_xrefs.pl b/misc-scripts/xref_projection/project_display_xrefs.pl index bc2624ef821afc1b63dfd60b105042d421ad2667..61746b7c35fa6c9453f5be44723a961dc97d145b 100644 --- a/misc-scripts/xref_projection/project_display_xrefs.pl +++ b/misc-scripts/xref_projection/project_display_xrefs.pl @@ -121,11 +121,9 @@ if (defined($registryconf)) { } } - - Bio::EnsEMBL::Registry->load_registry_from_multiple_dbs(@{$args}); -Bio::EnsEMBL::Registry->load_all($conf, 1, 1); # options mean "not verbose" and "don't clear registry" +Bio::EnsEMBL::Registry->load_all($conf, 0, 1); # options mean "not verbose" and "don't clear registry" # only delete names/GO terms if -delete_only has been specified if ($delete_only) { @@ -324,12 +322,12 @@ sub project_display_names { my $type = $db_to_type{$dbname}; - if ($type eq "Gene" || $dbname =~ /HGNC_.*gene/) { + if ($type eq "Gene" || $dbname eq 'HGNC') { $to_gene->add_DBEntry($dbEntry); $to_dbea->store($dbEntry, $to_gene->dbID(), 'Gene', 1) if (!$print); - } elsif ($type eq "Transcript" || $dbname =~ /HGNC_.*transcript/ || !$type) { + } elsif ($type eq "Transcript" || $dbname eq 'HGNC_transcript_name' || !$type) { $to_transcript->add_DBEntry($dbEntry); $to_dbea->store($dbEntry, $to_transcript->dbID(), 'Transcript', 1) if (!$print);