-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathget_deps.sh
48 lines (40 loc) · 1.33 KB
/
get_deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
echo "Getting agc, pbsim2, imagemagick and samtools with conda..."
conda create -n minichain_data
conda activate minichain_data
conda install -y -c bioconda agc pbsim2 samtools seqkit gfatools
conda install -y -c conda-forge imagemagick gnuplot
conda deactivate
echo "Getting k8 ..."
curl -L https://github.com/attractivechaos/k8/releases/download/v0.2.4/k8-0.2.4.tar.bz2 | tar -jxf -
cp k8-0.2.4/k8-`uname -s` k8
echo "Getting Minigraph ..."
git clone https://github.com/lh3/minigraph
cd minigraph && make
cd ..
echo "Getting Minimap2 ..."
git clone https://github.com/lh3/minimap2
cd minimap2 && make
cd ..
echo "Getting paftools.js and mgutils.js ..."
cp minigraph/misc/mgutils.js mgutils.js
cp minimap2/misc/paftools.js paftools.js
echo "Getting GraphAligner..."
git clone https://github.com/maickrau/GraphAligner.git
cd GraphAligner
git submodule update --init --recursive
conda env create -f CondaEnvironment_linux.yml
conda activate GraphAligner
make -j32
conda deactivate
cd ..
echo "Getting GraphChainer..."
git clone https://github.com/algbio/GraphChainer.git
git submodule update --init --recursive
conda env create -f CondaEnvironment.yml
conda activate GraphChainer
make -j32
conda deactivate
cd ..
echo "Getting P6C4.model ..."
wget https://raw.githubusercontent.com/yukiteruono/pbsim2/master/data/P6C4.model
echo "Installed dependencies."