1、下载安装 https://bitbucket.org/mroachawri/purge_haplotigs/wiki/Install
1、Dependencies (in no particular order)
bedtools
$ sudo apt install bedtools $ bedtools --version bedtools v2.26.0
samtools
$ sudo apt install samtools
$ samtools --version
samtools 1.7
Using htslib 1.7-2
Copyright (C) 2018 Genome Research Ltd.
Rscript
$ sudo apt install r-base r-base-dev
# on a new install we wont have the required R library 'ggplot2' installed
$ sudo su - -c "R -e \"install.packages('ggplot2', repos='http://cran.rstudio.com/')\""
Minimap2
# download the latest release from https://github.com/lh3/minimap2/releases (currently v2