-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·47 lines (38 loc) · 1.45 KB
/
install.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
#!/bin/bash
snakemake_env="install/snakemake"
set -e
# Install the snakemake environment
if [ ! -d $snakemake_env ]; then
>&2 echo "Installing snakemake conda environment in $snakemake_env ..."
mkdir -p install
eval "$(conda shell.bash hook)"
conda env create -f env/snakemake.yml --prefix $snakemake_env && \
conda activate $snakemake_env && \
mamba install -c bioconda -c conda-forge snakemake
fi
if [ ! -d ./bin ]; then
mkdir bin
fi
# Unzip some data that is shipped with the pipeline
if [ -f data/regions/HG001_GRCh38_GIAB_highconf_CG-IllFB-IllGATKHC-Ion-10X-SOLID_CHROM1-X_v.3.3.2_highconf_nosomaticdel_noCENorHET7.rm_chr.bed.gz ]; then
gunzip data/regions/HG001_GRCh38_GIAB_highconf_CG-IllFB-IllGATKHC-Ion-10X-SOLID_CHROM1-X_v.3.3.2_highconf_nosomaticdel_noCENorHET7.rm_chr.bed.gz
fi
if [ -f data/regions/xgen_plus_spikein.b38.bed.gz ]; then
gunzip data/regions/xgen_plus_spikein.b38.bed.gz
fi
# Install Plink 2.0
if [ ! -f ./bin/plink2 ]; then
>&2 echo "Downloading Plink 2.0 binaries"
cd bin
wget http://s3.amazonaws.com/plink2-assets/alpha2/plink2_linux_avx2.zip
unzip plink2_linux_avx2.zip && rm plink2_linux_avx2.zip
cd ..
fi
# Install Plink 1.9
if [ ! -f ./bin/plink ]; then
>&2 echo "Downloading Plink 1.9 binaries"
cd bin
wget http://s3.amazonaws.com/plink1-assets/plink_linux_x86_64_20201019.zip
unzip plink_linux_x86_64_20201019.zip && rm plink_linux_x86_64_20201019.zip
cd ..
fi