This is the official development repository for BaseVar, which call variants for ultra low-pass (<1.0x) WGS data, especially for NIPT data.
BaseVar requires HTSlib 1.3(or later) and Cython. You should compile htslib and install Cython before build BaseVar.
pip install cython
HTSlib can be downloaded from the htslib web site.
To compile and install HTSlib, cd into HTSlib source and type make install. This will install HTSlib under /usr/local/ (see note below). To install HTSlib in any other directory use make install prefix=/path/to/dir.
NOTE: HTSlib should be installed in a standard location (e.g. /usr/local/).
If not installed in a standard location, you will need to set your library paths:
export C_INCLUDE_PATH=/path/to/dir/include
export LIBRARY_PATH=/path/to/dir/lib
export LD_LIBRARY_PATH=/path/to/dir/lib
Note the /include and /lib sub-directories. e.g. if you installed HTSlib under /Users/me/htslib then set
export C_INCLUDE_PATH=/Users/me/htslib/include
export LIBRARY_PATH=/Users/me/htslib/lib
export LD_LIBRARY_PATH=/Users/me/htslib/lib
HTSlib will automatically make the include and lib directories on install.
export C_INCLUDE_PATH=/path/to/dir/include
export LIBRARY_PATH=/path/to/dir/lib
export DYLD_FALLBACK_LIBRARY_PATH=/path/to/dir/lib
To build BaseVar, please download the stable version which is v0.8.0, do the following:
wget https://github.com/ShujiaHuang/basevar/archive/v0.8.0.tar.gz
Then do
$ tar zxvf v0.8.0.tar.gz
$ cd basevar-0.8.0/
$ python setup.py install
Now you can use basevar in your commandline.
basevar basetype -R reference.fasta \
--regions chr11:5246595-5248428,chr17:41197764-41276135 \
--batch-count 50 \
-I 00alzqq6jw.bam \
-I 09t3r9n2rg.bam \
-I 0fkpl1p55b.bam \
-I 13dg1gvsfk.bam \
-I 17phildszl.bam \
-I 1dbpgqt0dq.bam \
-I 1kyws27hoc.bam \
--output-vcf test.vcf.gz \
--output-cvg test.cvg.tsv.gz \
--nCPU 4 && echo "** job done **"
basevar basetype -R reference.fasta \
--regions chr11:5246595-5248428,chr17:41197764-41276135 \
--batch-count 50 \
-L bamfile.list \
--output-vcf test.vcf.gz \
--output-cvg test.cvg.tsv.gz \
--nCPU 4 && echo "** job done **"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。