Installation notes for MCScanX version

来源:互联网 发布:螃蟹淘宝网店源码下载 编辑:程序博客网 时间:2024/05/17 03:11

Installation notes for MCScanX version

Prerequisites

  • Java

Installation

  1. $ cd /programinstallers/
  2. $ wget -N http://chibba.pgml.uga.edu/mcscan2/MCScanX.zip
  3. $ wget -N http://chibba.pgml.uga.edu/mcscan2/transposed/MCScanX-transposed.zip
  4. $ cd /usr/local/bin
  5. $ unzip /programinstallers/MCScanX.zip
  6. $ unzip /programinstallers/MCScanX-transposed.zip
  7. $ cd MCScanX
  8. $ make
  9. Only if the following error occurs during make
    g++ struct.cc mcscan.cc read_data.cc out_utils.cc dagchainer.cc msa.cc permutatio$msa.cc: In function ‘void msa_main(const char*)’:msa.cc:289:22: error: ‘chdir’ was not declared in this scopemake: *** [mcscanx] Error 1
    then for each of the following files:
    msa.h dissect_multiple_alignment.h detect_collinear_tandem_arrays.h

    Edit them by adding #include <unistd.h> before the first line
     for f in msa.h dissect_multiple_alignment.h detect_collinear_tandem_arrays.h ; do sed -i ‘1 i\#include <unistd.h>’ $f ; done
  10. $ make
  11. $ cd ../MCScanX-transposed
  12. $ make
  13. Because there are two different versions of MCScanX in the two directories, nothing is installed to the default PATH
     
  14. There is a different version called MCScanx (note lower case x) last updated Sept. 13, 2011 (commit 3b2f1a5d0e) at https://github.com/wyp1125/MCScanx.
    One nice addition to this version is that it has error checking to make sure that the input files exist!
    There is some confusing documentation about bed instead of gff input, but the code has no handler for bed files it appears.
    To install this version
    $ cd /usr/local/bin
  15. $ git clone https://github.com/wyp1125/MCScanx.git
  16. $ cd MCScanx
  17. Same problem as above fixed by
    for f in msa.h dissect_multiple_alignment.h detect_syntenic_tandem_arrays.h ; do sed -i ‘1 i\#include <unistd.h>’ $f ; done
  18. $ make
  19. Save a bit of space
    $ rm .git -rf
0 0
原创粉丝点击