liyanbo的个人博客分享 http://blog.sciencenet.cn/u/liyanbo

博文

FALCON and FALCON-UNZIP (1): 一波三折的安装

已有 2705 次阅读 2020-10-10 15:18 |个人分类:工具|系统分类:科研笔记| 生物软件

参考官方github: https://github.com/PacificBiosciences/FALCON_unzip/wiki/Binaries


(1) 选择用virtualenv and install External dependencies

export PYTHONUSERBASE=/home/yanbo/py36-yanbo

tar xvzf /home/yanbo/software/falcon-2018.08.08-21.41-py2.7-ucs4-beta.tar.gz -C /home/yanbo/py36-yanbo/

export LD_LIBRARY_PATH=/home/yanbo/py36-yanbo/lib:${LD_LIBRARY_PATH}

export PATH=/home/yanbo/py36-yanbo/bin:${PATH}

#export PYTHONPATH=/home/yanbo/py36-yanbo/lib/python2.7/site-packages

#unset PYTHONPATH


External dependencies:

samtools: http://www.htslib.org/download/

minimap2:https://github.com/lh3/minimap2/blob/master/cookbook.md#intro

which samtools 

samtools --help 

pbalign --help 

variantCaller -h 

python2.7 -c 'import pysam; print pysam' 

python2.7 -c 'import falcon_unzip; print falcon_unzip'

Fail: above tests not pass


(2) userbase

Pass tests in (1) ; 

when run it I found it is a python3 enviroment not python2 and faclon only support python2.


(2.1) intall python2.7.10 in py2-yanbo


https://www.cnblogs.com/smileyes/p/7288487.html

wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz

tar xvf Python-2.7.10.tgz

cd Python-2.7.10

./configure --prefix=/home/yanbo/py2-yanbo

make make install

make distclean

Python-2.7.10 版本太旧

pbalign --help not pass cause import hashlib meet problem

export PYTHONUSERBASE=/home/yanbo/py2-yanbo

tar xvzf /home/yanbo/software/falcon-2018.08.08-21.41-py2.7-ucs4-beta.tar.gz -C /home/yanbo/py2-yanbo/

export LD_LIBRARY_PATH=/home/yanbo/py2-yanbo/lib:${LD_LIBRARY_PATH}

export PATH=/home/yanbo/py2-yanbo/bin:${PATH}

#export PYTHONPATH=/home/yanbo/py2-yanbo/lib/python2.7/site-packages


(2.1.1) intall python2.7.15 in py36-yanbo

https://www.cnblogs.com/jessepeng/p/11610051.html

import hashlib problem solve

but variantCaller -h can find python-consensuscore also numpy and pysam need pip install

pip install numpy

pip install pysam


(3) install miniconda2 (install python2.7.15 )


export PYTHONUSERBASE=/home/yanbo/py36-yanbo/miniconda2

tar xvzf /home/yanbo/software/falcon-2018.08.08-21.41-py2.7-ucs4-beta.tar.gz -C /home/yanbo/py36-yanbo/miniconda2

export LD_LIBRARY_PATH=/home/yanbo/py36-yanbo/miniconda2/lib:${LD_LIBRARY_PATH}

export PATH=/home/yanbo/py36-yanbo/miniconda2/bin:${PATH}

#export PYTHONPATH=/home/yanbo/py36-yanbo/miniconda2/lib/python2.7/site-packages

conda install -c bioconda python-consensuscore


至此成功安装falcon and falcon-unzip


------------------------------------------- conda 的使用

conda install -c bioconda flye

conda update flye

/home/yanbo/py36-yanbo/miniconda2/bin/flye  --version 2.3.1-release






https://blog.sciencenet.cn/blog-1515646-1253846.html

上一篇:BioPython的安装
下一篇:FALCON and FALCON-UNZIP (2): 运行
收藏 IP: 27.38.82.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (1 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-11-24 12:43

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部