From 90132b580e9c08a40ab00a056ab43bb36147050a Mon Sep 17 00:00:00 2001 From: Nick Langridge Date: Wed, 16 Aug 2017 17:04:13 +0100 Subject: [PATCH] Make scripts work better with collection core databases Use SiteDefs PRODUCTION_NAMES as it contains db names (including collections), instead of SpeciesDefs ENSEMBL_DATASETS which contains individual genome names. This wy we can process in bulk instead of every individual genome. --- utils/google_sitemaps/make_google_sitemap_by_species.pl | 2 +- utils/make_gene_autocomplete.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/google_sitemaps/make_google_sitemap_by_species.pl b/utils/google_sitemaps/make_google_sitemap_by_species.pl index ac96386520..8e3943d105 100755 --- a/utils/google_sitemaps/make_google_sitemap_by_species.pl +++ b/utils/google_sitemaps/make_google_sitemap_by_species.pl @@ -102,7 +102,7 @@ BEGIN my @skip = split /,/, $skip_list; # create the sitemaps for each dataset -foreach my $dataset (@ARGV ? @ARGV : @{$sd->multi_hash->{'ENSEMBL_DATASETS'}}) { +foreach my $dataset (@ARGV ? @ARGV : @$SiteDefs::PRODUCTION_NAMES) { next if grep { $_ eq $dataset } @skip; print "$dataset\n"; diff --git a/utils/make_gene_autocomplete.pl b/utils/make_gene_autocomplete.pl index 5418a18bd5..556443c00d 100644 --- a/utils/make_gene_autocomplete.pl +++ b/utils/make_gene_autocomplete.pl @@ -64,7 +64,7 @@ BEGIN } } -foreach my $dataset (@ARGV ? @ARGV : @{$sd->multi_hash->{'ENSEMBL_DATASETS'}}) { +foreach my $dataset (@ARGV ? @ARGV : @$SiteDefs::PRODUCTION_NAMES) { warn "$dataset\n"; my $dbs = $sd->get_config($dataset, 'databases');