Archive Ensembl HomeArchive Ensembl Home
Home > Help & Documentation

Configuring your Ensembl species

Species ini files

The species configuration (database names, etc.) is kept in the conf/ini_files directory as an "ini" file. There is a generic file called DEFAULTS.ini which holds default values for all the species. (This is simply to save having to make the same setting in multiple species ini files.) There needs to be a species-specific .ini file for each species you want to display on your Ensembl website (e.g. Homo_sapiens.ini). You can override settings in DEFAULTS.ini by redefining the setting in a particular species' ini file. The MULTI.ini contains multi-species settings. It has database connection information for the Compara and Mart databases.

To create a new species-specific ini file, copy, rename and modify the template file in public-plugins/mirror/conf/ini-files/Genus_species.ini.

  • Under [databases] list all the ones configured for this species.
    You can use "%" instead of the release number if it is idential to the <ENSEMBL_VERSION> (configured in conf/SiteDefs.pm). This is equivalent to the schema version for the main ensembl site.
  • If you want to configure additional data you can use an existing ini file from the public-plugins/ensembl/conf/ini-files/ directory as a guide.

Customising your species list

The default species for Ensembl are listed in this file:

public-plugins/ensembl/conf/SiteDefs.pm

in %__species_aliases. These are automatically imported into the main conf/SiteDefs::ENSEMBL_SPECIES_ALIASES. In this distribution all the default species are enabled - to add or remove species from the list, see our documentation on customising and extending Ensembl.

The Ensembl home page and site maps

If you have added or deleted species, you will needed to generate new species lists for the home page and new site maps (see below).

If you have added species, you will also need a thumbnail image of the species, for use on the home page and main sitemap. The image must be 40x40px and called thumb_[Genus_species].png. Save it in public-plugins/mirror/htdocs/img/species/

Species lists

As of Release 42, the main species list is generated automatically from config.packed when the site is started. Only the pre species are manually edited - they are listed in /public-plugins/ensembl/htdocs/ssi/species_reorder_footer.html

If you do not wish to have the links to the pre species (and the associated tabs), you can override them as follows (starting from your server root, and creating the destination directory if it doesn't already exist in your mirror plugin):

cp htdocs/ssi/species_reorder* public-plugins/mirror/htdocs/ssi/

Site maps

These are generated quickly and easily by running utils/static_content/sitemap.pl. The script uses the SEARCH_LINKS hash from the cached configuration to generate individual species site maps, and also walks the /info directory to produce a tree of links to site documentation.

The script can be invoked with similar flags to homepage.pl, but does not need a release number.

If you have extended Ensembl by adding new views, you can include them in the site map by editing the script - see the inline documentation under 'TO ADD A NEW VIEW'.