Installing MEME from RPMs

Table of Contents:


Prerequisite software

The RPMS are build on a the machine that has the following software installed that will be required during runnign MEME:

[ Top ]


Getting the RPMs

Currently, RPMs for MEME version 3.5.2 are provided for i386 and x86_64 architectures (Linux CentOS) and are available from http://meme.nbcr.net/downloads/.

The RPMs are distributed as a tarball meme_3.5.2.ARCH.rpm.tar.gz which contains needed RPMS, and the script the must be run after the installation of RPMs (the script provides additional required setup).

When downloading the software, please make sure you verify the corresponding checksum. Here is the checksum information for available MEME RPM tarballs:

File md5sum
meme_3.5.2.i386.rpm.tar.gz 9ba0dafa96407024ea5469f4959b07fb
meme_3.5.2.x86_64.rpm.tar.gz ae9bc68588e29bb30d7ea4dc59fdb477

[ Top ]


Installing RPMs

All the commands below must be run as a superuser.

1. Create user meme prior to installation:

$ /usr/sbin/useradd -c "Meme user " -d /export/home/meme meme

Use command and path that is appropriate for your system.

1. Unzip and untar the distribution:

$ gunzip -c meme_3.5.2.ARCH.rpm.tar.gz | tar xvf -

1. Install RPMSs

$ rpm -i meme-3.5.2-0.ARCH.rpm
$ rpm -i meme-db-3.5.2-0.ARCH.rpm
$ rpm -i -force meme-web-3.5.2-0.ARCH.rpm

2. Run postinstall script

Take a look at the postinstall script postinstall-meme.sh to see what commands will be executed and what changes will be done to your system. At the top, there is a section where some variables are set. Make needed changes if any, then execute:
$ ./postinstall-meme.sh

3. Starting servers

The servers should be started as user meme

To start servers, execute:
$ /etc/init.d/rocks-meme start

To check server status, execute:
$ /opt/meme/bin/memed status

To stop servers, execute:
$ /etc/init.d/rocks-meme stop

The servers will be automatically started upon reboot.

4. Installing mast databases
Only some databases are probided, the rest will need to be downloaded on a regular basis. The tools for download are included. Here is the list of the ocmmands that can be executed at the desired frequencey (daily or weekly):

The resulting files in the databases directory will be around 26Gb. If your /opt/meme/db directory does not have anough space create a database directory on a filesystem with the sufficient space and make a link to /opt/meme/db. It can take time to download all the databases, and the connections to some sites from which files are downloaded may be not always available. The result of the download will be emailed to the address specified by yourmail@your.address. If there are errors, they will be noted in the email, and the command to install the databases will need to be repeated.

5. Configuring apache web access

The HTTP DocumentRoot is assumed to be /var/www/html, and a link is created during postinstall step. The URL for web access is http://your.host.name/meme/. Modify postinstall-meme.sh if your system requires different HTTP settings.

[ Top ]


Resulting installation files

Installing RPMs will provide for installing MEME servers and clients, including the web services, and the following directory structure will be created in /opt/meme:

    bin/    db/    etc/    lib/    tests/    web/
In addition, a postinstall-meem.sh creates
    /home/meme/LOGS

Directories contents:

bin/
MEME and MAST executables and scripts
db/
this directory is initially partially filled with the database files, and needs to be updated (run update_mast_databases command.
etc/
contains the following files
lib/
contains common Perl modules
LOGS/
directory for temporary files created by mast or MEME when jobs are submitted via web
tests/
known correct output of MEME and MAST for specific sequences and databases. These files are used when running make test during installation or bin/runtests
web/
contains files necessary to setup up a web-based access to MEME/MAST servers.

[ Top ]


Using meme/mast

Before using MEME and MAST, users must add a few environment variables. All needed variables are defined in meme.csh and meme.sh files.

  1. If using csh or tcsh, execute the following command:
    $ source install-path/etc/meme.csh

    To make the addition of these variables automatic upon login, add a line to your .cshrc or .tcshrc file:
    $ source install-path/etc/meme.csh

  2. If using sh or bash, execute the following command:
    $ . install-path/etc/meme.sh

    To make the addition of these variables automatic add a line to your .profile or .bash_profile file:
    $ . install-path/etc/meme.sh

The install-path should be a full path to the installation directory. To find out how to use MEME or MAST execute respectively:
$ meme
$ mast

Both commands print usage on stdout.

[ Top ]


Running regression tests

There is a suit of tests that can be run to test MEME and MAST output against known output. These tests can be run at any time after the installation of newly compiled MEME and MAST binaries (meme.bin and mast.bin). These tests can take a long time. The output files from the tests go into the newly created directory install-path/tests/results/. If the tests pass without errors this directory with its output files will be deleted. If there are errors the output files are kept and can be compared to files in install-path/tests/. To run the regression tests do:

$ install-path/bin/runtests

[ Top ]


Reporting problems

Make sure first that you really have a problem:

[ Top ]


Copyright © 1994-2006 The Regents of the University of California. All rights Reserved.