eHive_install_usage.txt 3.33 KB
Newer Older
1 2 3 4
	eHive installation, setup and usage.

1. Download and install the necessary external software:

5
1.1. Perl 5.10 or higher, since eHive code is written in Perl
6

7
	see http://www.perl.com/download.csp
8

9
1.2. A database engine of your choice
10

11 12 13 14 15 16 17
	eHive keeps its state in a database, so you will need
	(1) a server installed on the machine where you want to maintain the state and
	(2) clients installed on the machines where the jobs are to be executed.

	At the moment, the following engines are supported:

1.2.1. MySQL 5.1 or higher
18 19 20

	see http://dev.mysql.com/downloads/

21 22 23 24 25 26 27 28
1.2.2. SQLite 3.6 or higher

	see http://www.sqlite.org/download.html

1.2.3. PostgreSQL 9.2 or higher

	see http://www.postgresql.org/download/

29
1.3. Perl DBI API version 1.6 or higher
30 31 32 33 34
	Perl database interface that includes API to your desired database engine

	see http://dbi.perl.org/

1.4. Perl libraries for visualisation (optional)
35

36 37 38
	You can find them on CPAN:
	 - GraphViz         (needed for generate_graph.pl)
	 - Chart::Gnuplot   (needed for generate_timeline.pl)
39 40


41
2. Install the Hive repository from GitHub:
42

43
    git clone https://github.com/Ensembl/ensembl-hive.git
44

45
This will create ensembl-hive directory with all the code and documentation.
46

47 48
You may find it convenient (although it is not necessary) to add "ensembl-hive/scripts"
to your $PATH variable to make it easier to run beekeeper.pl and other useful Hive scripts.
49

50 51
Also, if you are developing the code and not just running ready pipelines,
you may find it convenient to add "ensembl-hive/modules" to your $PERL5LIB variable.
52 53


54
3. Useful files and directories of the eHive repository.
55

56 57
3.1 In ensembl-hive/scripts we keep perl scripts used for controlling the pipelines.
    Adding this directory to your $PATH may make your life easier.
58

59 60
    * init_pipeline.pl is used to create hive databases, populate hive-specific and pipeline-specific tables and load data

61 62
    * seed_pipeline.pl is used to add new jobs to the pipeline.

63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
    * beekeeper.pl is used to run the pipeline; send 'Workers' to the 'Meadow' to run the jobs of the pipeline

3.2 In ensembl-hive/modules/Bio/EnsEMBL/Hive/PipeConfig we keep example pipeline configuration modules that can be used by init_pipeline.pl .
    A PipeConfig is a parametric module that defines the structure of the pipeline.
    That is, which analyses with what parameters will have to be run and in which order.
    The code for each analysis is contained in a RunnableDB module.
    For some tasks bespoke RunnableDB have to be written, whereas some other problems can be solved by only using 'universal buliding blocks'.
    A typical pipeline is a mixture of both.

3.3 In ensembl-hive/modules/Bio/EnsEMBL/Hive/RunnableDB we keep 'universal building block' RunnableDBs:

    * SystemCmd.pm  is a parameter substitution wrapper for any command line executed by the current shell

    * SqlCmd.pm     is a parameter substitution wrapper for running any MySQL query or a session of linked queries
                    against a particular database (eHive pipeline database by default, but not necessarily)

    * JobFactory.pm is a universal module for dynamically creating batches of same analysis jobs (with different parameters)
                    to be run within the current pipeline

3.4 In ensembl-hive/modules/Bio/EnsEMBL/Hive/RunnableDB/LongMult we keep bespoke RunnableDBs for long multiplication example pipeline.