bcftools的安装问题

bcftools安装缺乏liblzma.dev文件问题解决办法

#这是我的第一个博客,可能不太好看,仅作为个人学习记录,若有问题,欢迎各位与我交流并指导。

##安装需要sudo命令,如果apt-get不能下载,可使用yum -y,安装步骤可参考其他人的博客,安装过程比较简单。但我遇到小问题,是缺少liblzma-dev,安装liblzma-dev方法如下

sudo apt-get update -y
sudo apt-get install -y liblzma-dev

#得到以下结果

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
No package liblzma-dev available.
Error: Nothing to do

#在谷歌上找该文件,并下载。经过很多方法安装这个文件后发现没能解决问题。

wget http://mirrors.kernel.org/ubuntu/pool/universe/g/golang-github-remyoudompheng-go-liblzma/golang-github-remyoudompheng-go-liblzma-dev_0.0~git20190506.81bf2d4-2_all.deb

#得到golang-github-remyoudompheng-go-liblzma-dev_0.0~git20190506.81bf2d4-2_all.deb文件。这又得学习deb文件的安装。百度有人推荐dpkg -i 文件名 的方法安装deb文件,谁知学校的主机没有这个命令,我恨!

sudo: dpkg: command not found

#查到原因应该是学校用的系统的版本问题,需要包支撑。需要找dpkg包,没想到这个包还是deb。谷歌上的这个老外回答的问题把我绕我回来了,

wget http://ftp.us.debian.org/debian/pool/main/d/dpkg/dpkg_1.19.7_amd64.deb~~  

解决方法(缺啥补啥)

#尝试很多方法,这个问题产生原因是bcftools版本更新了(目前是1.10.2),需要更多依赖包。废话少说,直接上代码。我的主机是红帽版,这个方法适合红帽解决该问题。

 yum install xz-devel

#再安装一次估计能行,这些包是解析文件所用。再次安装,代码如下

[root@localhost bcftools-1.10.2]# ./configure --prefix=/home/xuchang/software/bcftools-1.10.2/bcftools1.10.2
[root@localhost bcftools-1.10.2]# make
[root@localhost bcftools-1.10.2]# make install
[root@localhost bcftools-1.10.2]# export PATH=/home/xuchang/software/bcftools-1.10.2/bcftools1.10.2/bin:$PATH
[root@localhost bcftools-1.10.2]# source ~/.bashrc
[root@localhost bcftools-1.10.2]# bcftools

Program: bcftools (Tools for variant calling and manipulating VCFs and BCFs)
Version: 1.10.2 (using htslib 1.10.2)

Usage:   bcftools [--version|--version-only] [--help] <command> <argument>

Commands:

 -- Indexing
    index        index VCF/BCF files

 -- VCF/BCF manipulation
    annotate     annotate and edit VCF/BCF files
    concat       concatenate VCF/BCF files from the same set of samples
    convert      convert VCF/BCF files to different formats and back
    isec         intersections of VCF/BCF files
    merge        merge VCF/BCF files files from non-overlapping sample sets
    norm         left-align and normalize indels
    plugin       user-defined plugins
    query        transform VCF/BCF into user-defined formats
    reheader     modify VCF/BCF header, change sample names
    sort         sort VCF/BCF file
    view         VCF/BCF conversion, view, subset and filter VCF/BCF files

 -- VCF/BCF analysis
    call         SNP/indel calling
    consensus    create consensus sequence by applying VCF variants
    cnv          HMM CNV calling
    csq          call variation consequences
    filter       filter VCF/BCF files using fixed thresholds
    gtcheck      check sample concordance, detect sample swaps and contamination
    mpileup      multi-way pileup producing genotype likelihoods
    roh          identify runs of autozygosity (HMM)
    stats        produce VCF/BCF stats

 Most commands accept VCF, bgzipped VCF, and BCF with the file type detected
 automatically even when streaming from a pipe. Indexed VCF and BCF will work
 in all situations. Un-indexed VCF and BCF and streams will work in most but
 not all situations.

喜大奔普。弄了近8小时,我恨。
额外学习,这位大佬教咱认识bashrc。bashrc是bash recode吗?
链接: https://www.cnblogs.com/probemark/p/5886766.html.

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值