This repository contains the guiHive code, a graphic user interface to easily interact with your eHive pipeline. See https://github.com/Ensembl/ensembl-hive for more information about the eHive system.
This code is being maintained by the Ensembl team. Improvements, new features and bug fixes are being added regularly, so if you use it, please remember to check for updates regularly (or "watch" the github repo to get notification of updates). It is also recommended that you join the hive-users mailing list (see https://github.com/Ensembl/ensembl-hive for more information on how to do this) since news and updates will be announced there.
guiHive consists of:
- A web interface that can be run in any modern web browser (see the "Browser compatibility" section below).
- A web server that connects the web interface with the hive code that interacts with your hive database.
- A Perl layer that gathers information from your pipeline (using the eHive API) and returns it to the web server and interface.
The application is served by a lightweight HTTP server written in GO. It merely acts as a middle-man that calls Perl scripts on the server side upon incoming HTTP requests and streams back their output. The Perl scripts use eHive's Perl API to access and manipulate the database. They write their output as JSON or HTML.
On the client side there is a single page that sends AJAX requests to the server to populate the various tabs and panels.
Obviously, the main server must have network access to the database server in order to manage these pipelines.
The fastest way to try guiHive on your own system is to use the Docker image ensemblorg/guihive. It ships all the dependencies and is ready to be used.
docker pull ensemblorg/guihive
docker run --name guihive_server -p 8081:8080 -d ensemblorg/guihive
This will start the guiHive server in a Docker container and make it available on port 8081 of the host machine.
As stated above, the container must be configured to have network access to the databases you want to interact with. This is native under Linux, but requires additional setup on other OSes.
DISCLAIMER - The only officially supported OS is CentOS version 7 and 8.
This said, guiHive should work fine also on different Linux systems.
The major known issue is about the proper rendering of images via GraphViz libs on different systems/versions.
guiHive depends on the following components that need to be installed in your system:
- Git client : To clone this repository (http://git-scm.com/downloads).
- eHive API : guiHive depends on the eHive API. You can download the latest code from github (https://github.com/Ensembl/ensembl-hive).
Make sure to fulfil also the eHive dependencies, especially GraphViz (dot), GraphViz (Perl) and the SQL client.
- Ensembl API : eHive depends on the core Ensembl API. BioPerl or any other Ensembl related checkouts are not needed.
- GraphViz : eHive depends on dot (from GraphViz) to create the graphical representation of the pipelines. The Perl package GraphViz is also needed.
- Go tools : The server of guiHive is written in the Go programming language. Since the current guiHive version doesn't include binaries for the server you will need to compile it. guiHive is currently known to compile with Go up to version 1.17.7 Please refer to the Go website (http://golang.org) for installation instructions. Equivalently, you may use your favourite package manager.
- Misc Perl Modules : Several Perl modules are needed by guiHive. Please refer to our cpanfile (https://github.com/Ensembl/guiHive/blob/server/cpanfile).
There is a script in the guiHive root directory called test_dep.pl
that tests all the dependencies. To run it:
$ perl test_dep.pl
If you experience problems setting up guiHive you can also follow the tips printed at the end of that script.
Make sure you have Perl installed in your system. Use of a virtual environment - although not required - is recommended.
The main prerequisites are:
- build-essential (or equivalent) OS package
- graphviz (dot) OS package
- At least one SQL Client among MySQL, SQLite, PostgreSQL
- cpanm - not required, but handy a utility
- Go language 1.8 or higher - we assume Go 1.17 is used
- Ensembl-hive 2.6 and its dependencies - make sure you also install the required Perl modules for eHive
For further details about these dependencies, please see https://ensembl-hive.readthedocs.io/en/version-2.6/quickstart/install.html
Once you have all the dependencies installed and up to date follow these steps:
- Clone the guiHive repository (if you haven't done yet) and cd into it.
$ git clone https://github.com/Ensembl/guiHive
- cd into guiHive folder and complete the installation
$ bash guihive-deploy.sh
$ cpanm --installdeps .
- cd into the "server" folder and make sure the Go version is matches the declaration in go.mod file build the web server
$ cd guiHive/server
$ cat go.mod
- build the web server
$ go build
- This will create the "server" executable in the current directory
- Execute the server:
$ ./server
- Open your preferred browser (check the browser compatibility below first!) and go to the following URL:
http://127.0.0.1:8080
(Note1: The 8080 port is the default one used by guiHive, you can change it when invoking the server executable using the -port option)
(Note2: The server is actually listening at all incoming traffic to port 8080, not only traffic from localhost)
You should now be able to connect to your database and start monitoring your pipeline.
- If you'd like to investigate a server error, it helps to kill the server and recompile it in debug mode:
$ go build -tags debug
- Then simply start it again. There will be much more debug output which may help to capture the error:
$ ./server
guiHive and all the 3rd party libraries used in guiHive are supposed to work in reasonably recent versions of the mainstream web browsers. IE>=9 should also work but I haven't tested. If you experience any problem, please send your comments to hive-users@ebi.ac.uk
AFAIK everything works fine in Firefox (v7.0.1, v8.0.1, v12.0, v18.0.1, v91.0.2, v92.0), Chrome (v24.0.1312.56, v93.0.4577.63), Safari (v5.1.7, v14.1.2) and Opera (v12.12).
Feedback is more than welcome. Please send your bug reports to the hive mailing list (hive-users@ebi.ac.uk).