Skip to content

Install macs2

Tao Liu (τν) edited this page May 17, 2013 · 32 revisions

Location of Code

MACS2 can be found at PyPI website https://pypi.python.org/pypi/MACS2/ or at GitHub https://github.com/taoliu/MACS/

Typical Installation Instructions

Platform

  • *nix system including Linux, Mac OSX and other *nix variants
Requirements
  • Python 2.7 (Note that Python 2.7.4 has a bug which causes error while reading compressed BAM file'. Fix it according to this report in MACS user group. This bug has been fixed in Python 2.7.5 which was released on 5/12/2013.')
  • Numpy, and Scipy (I recommend you install your own through rpm for Redhat variants or dpkg for Debian variant linux, or install from source code. Although if you are lucky, you can let pip to fix the dependancies. Check the next section.)
  • gcc compiler. As for Mac OSX users, it means you have to install Xcode then select 'install command line tools' within Xcode program.
Easy installation through PyPI
  • Follow this instruction to get pip if it's not available in your system.
  • Under command line, type
    $ pip install MACS2
    PyPI will install Numpy and Scipy automatically if they are absent.
  • To upgrade, type
    $ pip install -U MACS2
Compile from source code
  • Download source code package from MACS2 page on PyPI then follow the instruction in INSTALL file.
  • Type
    $ python setup.py install --prefix=/X/Y
  • Fix environments PATH and PYTHONPATH while necessary
Clone this wiki locally