Edit Ensembl plugin
Ensembl sites use a plugin architecture that allows any methods/settings to be overwritten by files that are loaded after the main webcode. GenomeHubs provides a plugin which customises some of the features of a standard Ensembl Site, however, in order to set links to the other site components (particlarly the downloads server which hosts data for the assembly statistic visualisations) it is necessary to write a plugin.
At its simplest, this plugin need only contain a configuration file to specify URLs, but it is also useful to include images and text for the assemblies that you will be hosting. Beyond this a plugin could be developed to customise almost any feature of the site so this provides an introduction to one of the most powerful features of an Ensembl site.
Create a plugin
Visit github and fork the genomehubs/template-plugin into your own github account.
- GenomeHubs fetches plugins from git repositories when starting the Ensembl browser so your plugin must be available in a git repository, but this does not need to be a publicly hosted repository on Github so long as it is accessible via
git clonefrom the machine that will host the Ensembl site.
conf/ini-files/DEFAULTS.ini to update urls, logos and styles:
- modify entries that refer to genomehubs
- ensure that urls point to your domain
- ensure that the
ASSEMBLY_STATS_URLpath matches the version name of the directory mounted on the downloads server
- update other logos and styles as required
Add images for each species (if available) to
- name images to match the
- add a 64 pixel square image to the
- add a 48 pixel square image to the
Add descriptive text to appear on each assembly home page to
- name files
Edit copyright and link details in the perl modules under
Commit and push all changes