How to install Circos on Mac OS system

Steps to install Circos in Mac OS

  • First, from oficial website: https://circos.ca dowload the lastest version of CIRCOS for Mac. And install it in a folder ~/app, if the path of that folder is not in the PATH of mac then we need to add it to by the instructions of the link below
    https://www.architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/
  • We can use brew install libpng, libjpeg, freetype, libgd.
    brew install libpng
    brew install libjpeg
    brew install freetype
    brew install libgd
  • Test and install missing parts of perl moudles
    circos -modules
    " missing Font::TTF::Font "
    This mean we do not have Font::TTF::Font module so we need to install all missing modules by:
    sudo cpan
    cpan[1]> install Config::General
    cpan[2]> install Font::TTF::Font
    ...
    cpan[*]> exit 

But we may missing module GD and GD::Polyline so that we can install it manaually by:
wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.51.tar.gz

   tar xfvz ./GD-2.51.tar.gz
   cd GD-2.51/
   perl Makefile.PL    
   make
   sudo make install

In the end we test the sample of circos by:

   cd ~/Software/circos/current/example
   ./run
   open circos.png

If we get a nice pic then this means we install it successfully!

reference link: https://www.jianshu.com/p/d1715b25f9d1
https://kylase.github.io/CircosAPI/os-x-installation-guide/