在Centos6.5上对gdc-client进行源码安装

  source ~/.bashrc_python-2.7.11 #事先安装好Python2.7以上的版本
  git clone git@github.com:NCI-GDC/gdc-client.git
  vim requirements.txt
          -e /home/train/gdc-tool/parcel #指定本地安装parcel,不然因为外网,无法下载
  pip install -r requirements.txt
  pip install -r dev-requirements.txt
  python setup.py install
  python -m pytest --cov=gdc_client --cov-branch --cov-report term tests/

  echo 'PATH=$PATH:/home/train/gdc-tool/gdc-client/bin' >> ~/.bashrc
  source ~/.bashrc

  #如果遇到'DownloadStream' object has no attribute 'url'的问题
  cd /home/train/gdc-tool/gdc-client/gdc_client/download
  cp client.py client.py.bak
  # gdc-client calls parcel's parallel_download,
  # which is where most of the downloading takes place
      file_id = stream.uri.split('/')[-1] # l -> i

  cd /home/train/gdc-tool/gdc-client
  python setup.py install
  rm -rf /home/train/gdc-tool/gdc-client/gdc_client/
此条目发表在TCGA分类目录。将固定链接加入收藏夹。

发表评论

邮箱地址不会被公开。 必填项已用*标注

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Protected with IP Blacklist CloudIP Blacklist Cloud