Skip to content

Instantly share code, notes, and snippets.

@brentp
Last active April 6, 2017 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brentp/c11d48d83736f87bc1cc7fa87d2256ee to your computer and use it in GitHub Desktop.
Save brentp/c11d48d83736f87bc1cc7fa87d2256ee to your computer and use it in GitHub Desktop.
apt-get update
apt-get -qy install libcurl4-openssl-dev curl cmake make build-essential libbz2-dev lzma-dev liblzma-dev git \
python-dev
mkdir -p /home/ubuntu
cd /home/ubuntu
git clone --depth 1 http://root.cern.ch/git/root.git
mkdir root/ibuild
cd root/ibuild
cmake -D x11=OFF ../
make -j4 install
cd /home/ubuntu
git clone --depth 1 https://github.com/abyzovlab/CNVnator
cd CNVnator
git clone --depth 1 --branch 1.4 https://github.com/samtools/samtools
git clone --depth 1 --branch 1.4 https://github.com/samtools/htslib
cd htslib
make libhts.a
cd ..
cd samtools
make lib
cd ..
make HTSDIR=htslib/ LIBS="-llzma -lbz2"
ldconfig
cp ./cnvnator /usr/local/bin
rm -rf /home/ubuntu/root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment