HiCPlotter安装

Usage:

/public/home/zpliu/miniconda3/envs/Python2-dev/bin/python2 /public/home/zpliu/github/HiCPlotter/HiCPlotter.py -h

1.源文件下载

HiCPlotter是一款开源软件,源代码存储在github仓库中。

https://github.com/kcakdemir/HiCPlotter

  • 直接在服务器中下载

    • --depth=1只下载最近一次commit,节省时间

    ## 源文件将保存在当前路径/HiCPlotter/下
    git clone git@github.com:kcakdemir/HiCPlotter.git --depth=1
  • 下载到windows再发送到服务器内

2.安装依赖

Please note: scipy, numpy and matplotlib modules should be installed and updated to current version. Following versions of numpy (1.9.0, 1.9.2), scipy (0.14.0, 0.15.1) and matplotlib (1.3.1, 1.4.3) have been tested successfully.

  • numpy

  • scipy

  • matplotlib

HiCPlotter依赖于python2.7,所以所有的python包都是在python2.7中下载

  • --user普通用户,没有root权限情况下使用

  • 安装numpy 在安装scipy 最后安装matplotlib

3.测试

4.开放权限给其他账户

  • 开放python 包安装目录

  • 在python脚本中添加包搜索路径

其他用户如何使用:

  • 推荐使用第一种方式运行,因为用户自己目录下可能也存在numpy等包,存在版本冲突的可能

5.安装错误

这里错误主要就是两类:

  • 使用python2而不是python3

  • numpyscipymatplotlib包的版本不对

我环境中有两个版本的python2,我在使用pip安装numpy等包时,安装包被安装在`~.local/lib/python2.7/site-packages/下

而我使用的python2是SMARTLink软件中自带了,在运行测试数据时,总是报版本错误

在开放其他用户权限时的错误

ImportError: No module named mpl_toolkits.axes_grid1

参考

  1. python模块化

Last updated

Was this helpful?