We recommend installation from Singularity or Docker images.
This section provides an overview of the dependencies and assistence to compile them from source.
If using local versions of R, Perl or Python is preferred, remove the corresponding symlink in $clinsv_path/bin
. Make sure that the required packages are installed.
This installation was tested on CentOS 8
clinsv_path=$PWD/clinsv
mkdir -p $clinsv_path/bin
export PATH=$clinsv_path/bin:$PATH
- excluding precompiled dependencies
- pre-publication access
wget https://nci.space/clinsv/clinsv_b38/ClinSV_scripts_only_v1.0.tar.gz
tar zxf ClinSV_scripts_only_v1.0.tar.gz
- post-publication access
git clone https://github.com/KCCG/ClinSV.git
mkdir $clinsv_path/perl
cd $clinsv_path/perl
wget http://www.cpan.org/src/5.0/perl-5.24.1.tar.gz
tar -xzf perl-5.24.1.tar.gz
cd perl-5.24.1
./Configure -des -Dprefix=$clinsv_path/perl -Duserelocatableinc
make
make test
make install
cd $clinsv_path/perl
rm -r perl-5.24.1*
cd $clinsv_path/perl
curl -L https://cpanmin.us/ -o cpanm
chmod +x cpanm
cd $clinsv_path/bin
ln -s ../perl/bin/perl perl
ln -s ../perl/cpanm cpanm
#cpanm Bio::Perl
cpanm Compress::Zlib
cpanm Sort::Naturally
cpanm List::BinarySearch::XS
cpanm Excel::Writer::XLSX
cpanm LWP
cd $clinsv_path/perl
git clone https://github.com/MinocheAE/tabix.git
cd tabix
make
cd perl
perl Makefile.PL
make
make test
make install
cd $clinsv_path/perl
git clone https://github.com/dpryan79/libBigWig
cd libBigWig/
make
export LIBBIGWIG_DIR=$PWD
cpanm install Bio::DB::Big
cd $clinsv_path
mkdir samtools
cd samtools
wget https://github.com/samtools/samtools/releases/download/1.10/samtools-1.10.tar.bz2
wget https://github.com/samtools/bcftools/releases/download/1.10.2/bcftools-1.10.2.tar.bz2
wget https://github.com/samtools/htslib/releases/download/1.10.2/htslib-1.10.2.tar.bz2
tar xvfj samtools-1.10.tar.bz2
tar xvfj bcftools-1.10.2.tar.bz2
tar xvfj htslib-1.10.2.tar.bz2
cd htslib*
make; make prefix=$clinsv_path/samtools install
cd ../samtools*
make; make prefix=$clinsv_path/samtools install
cd ../bcftools*
make; make prefix=$clinsv_path/samtools install
cd ..
rm -r htslib* samtools* bcftools*
cd $clinsv_path/bin
ln -s ../samtools/bin/bcftools bcftools
ln -s ../samtools/bin/samtools samtools
ln -s ../samtools/bin/bgzip bgzip
ln -s ../samtools/bin/tabix tabix
For source and binaries please refer to: http://hgdownload.soe.ucsc.edu/admin/exe/
Save the binaries into: $clinsv_path/bigWigTools
mkdir $clinsv_path/bigWigTools
cd $clinsv_path/bigWigTools
wget http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64.v369/bigWigToWig
wget http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64.v369/wigToBigWig
chmod ug+x $clinsv_path/bigWigTools/*
cd $clinsv_path/bin
ln -s ../bigWigTools/bigWigToWig bigWigToWig
ln -s ../bigWigTools/wigToBigWig wigToBigWig
mkdir $clinsv_path/python
cd $clinsv_path/python
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar zxf Python-2.7.18.tgz
cd Python-2.7.18
./configure --prefix=$clinsv_path/python
make
make install
cd $clinsv_path/python
rm -r Python-2.7.18*
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
./bin/python get-pip.py
cd $clinsv_path/bin
ln -s ../python/bin/python python
ln -s ../python/bin/python python2
ln -s ../python/bin/pip pip
pip install numpy
pip install pysam
For installing CNVnator https://github.com/hall-lab/speedseq#installation
Compilling root rarely works on the first attempt. As long as CNVnator runs without error messages a partial compillation is sufficient.
cd $clinsv_path
wget https://root.cern.ch/download/root_v5.34.38.source.tar.gz
tar -zxf root_v5.34.38.source.tar.gz
cd root
./configure
make
source $PWD/bin/thisroot.sh
mkdir $clinsv_path/cnvnator-multi
cd $clinsv_path/cnvnator-multi
git clone --recursive https://github.com/hall-lab/speedseq
cd speedseq
make cnvnator
- The
-std=c++11
may need to be removed fromsrc/CNVnator/Makefile
cd $clinsv_path/cnvnator-multi
ln -s speedseq/bin/cnvnator cnvnator-multi .
ln -s speedseq/bin/cnvnator_wrapper.py .
cd $clinsv_path
git clone --recursive https://github.com/arq5x/lumpy-sv.git
cd lumpy-sv
make
cd $clinsv_path/bin
ln -s ../lumpy-sv/bin/lumpy lumpy
mkdir $clinsv_path/R
cd $clinsv_path/R
wget http://cran.rstudio.com/src/base/R-3/R-3.2.3.tar.gz
tar zxf R-3.2.3.tar.gz
cd R-3.2.3
./configure --prefix=$clinsv_path/R
make
make install
cd $clinsv_path/bin
ln -s ../R/bin/R R
rm -fr $clinsv_path/R/R-3.2.3*
cd $clinsv_path/R/lib64/R/library
R
.libPaths(getwd())
install.packages("knitr", getwd(),repos='http://cran.rstudio.org');
library("knitr");
quit(save="no")