Installation as a Python package

Prerequisites

For preprocessing BED files with preprocess_dataset (tested only on Linux and macOS):

Installation of prerequisites

  1. Install prerequisites for GHMM as described on http://ghmm.sourceforge.net/installation.html. The commands for Ubuntu are:
sudo apt-get update
sudo apt-get install build-essential automake autoconf libtool
sudo apt-get install python-dev
sudo apt-get install libxml++2.6-dev
sudo apt-get install swig
  1. Download and unpack GHMM from https://sourceforge.net/projects/ghmm/
  2. Install GHMM as described on http://ghmm.sourceforge.net/installation.html. The commands for Ubuntu are:
cd ghmm
sh autogen.sh
sudo ./configure
sudo make
sudo make install
sudo ldconfig
  1. Install GraphViz. On Ubuntu:
sudo apt-get install graphviz
sudo apt-get install libgraphviz-dev
  1. Install pip if not already installed. On Ubuntu:
sudo apt-get install python-pip
  1. Install PyGraphViz:
sudo PKG_CONFIG_ALLOW_SYSTEM_LIBS=OHYESPLEASE pip install pygraphviz
  1. Install bedtools as described on http://bedtools.readthedocs.io/en/latest/content/installation.html
  2. Download and install RNAshapes from https://bibiserv.cebitec.uni-bielefeld.de/download/tools/rnashapes.html.
  3. Download and install RNAstructure from http://rna.urmc.rochester.edu/register.html.

Installation of ssHMM

  1. Download ssHMM from https://github.molgen.mpg.de/heller/ssHMM
  2. Install ssHMM:
#as root
sudo python setup.py install

#as non-root
python setup.py install --user

This will install ssHMM and the following python package dependencies: numpy, graphviz, pygraphviz, weblogo, future, logging_exceptions, forgi. If setuptools fails to install any of the dependencies, try to install it separately (e.g. with sudo pip install numpy).