EnsemblEnsembl Home

Removing unneeded views

If you have a very basic installation of Ensembl with, say, no compara or functional genomics databases downloaded, you may want to remove the views that show that data. This is easily achieved via your plugin.

First, create a directory for the module that will modify the menu, e.g. /public-plugins/mirror/modules/EnsEMBL/Web. Then create the following file:

package EnsEMBL::Web::Configuration::Gene;

use strict;

sub modify_tree {
  my $self = shift;
  $self->delete_node('Regulation');
  $self->delete_submenu('Compara');
  $self->delete_submenu('Variation');
}

1;

Restart your server, and the unwanted menu items will disappear!