-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.sh
35 lines (32 loc) · 1.89 KB
/
package.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
#!/bin/bash
#
# Packages release artifacts based on the versions specified in the Dockerfiles
#
# NB: requires gridss source to be at ../gridss
#
rm -rf package
mkdir -p package/gridss package/gridss-purple-linx package/hmftools
version=$(grep software.version Dockerfile | grep -oh '".*"' | tr -d \")
GRIDSS_VERSION=$(grep "GRIDSS_VERSION=" ../gridss/Dockerfile | cut -d "=" -f 2)
AMBER_VERSION=$(grep "AMBER_VERSION=" Dockerfile | cut -d "=" -f 2)
COBALT_VERSION=$(grep "COBALT_VERSION=" Dockerfile | cut -d "=" -f 2)
PURPLE_VERSION=$(grep "PURPLE_VERSION=" Dockerfile | cut -d "=" -f 2)
LINX_VERSION=$(grep "LINX_VERSION=" Dockerfile | cut -d "=" -f 2)
cd package/gridss
wget https://github.com/PapenfussLab/gridss/releases/download/v$GRIDSS_VERSION/gridss-$GRIDSS_VERSION-gridss-jar-with-dependencies.jar &
wget https://github.com/PapenfussLab/gridss/releases/download/v$GRIDSS_VERSION/gridss.config.R &
wget https://github.com/PapenfussLab/gridss/releases/download/v$GRIDSS_VERSION/gridss.sh &
wget https://github.com/PapenfussLab/gridss/releases/download/v$GRIDSS_VERSION/gridss_annotate_insertions_repeatmaster.R &
wget https://github.com/PapenfussLab/gridss/releases/download/v$GRIDSS_VERSION/gridss_somatic_filter.R &
wget https://github.com/PapenfussLab/gridss/releases/download/v$GRIDSS_VERSION/libgridss.R &
cd -
cd package/hmftools
wget https://github.com/hartwigmedical/hmftools/releases/download/amber-v$AMBER_VERSION/amber-$AMBER_VERSION.jar &
wget https://github.com/hartwigmedical/hmftools/releases/download/cobalt-v$COBALT_VERSION/cobalt-$COBALT_VERSION.jar &
wget https://github.com/hartwigmedical/hmftools/releases/download/purple-v$PURPLE_VERSION/purple-$PURPLE_VERSION.jar &
wget https://github.com/hartwigmedical/hmftools/releases/download/sv-linx-v$LINX_VERSION/sv-linx_$LINX_VERSION.jar &
cd -
cp gridss-purple-linx.sh package/gridss-purple-linx/
cd package
wait
tar -zcvf ../gridss-purple-linx-v$version.tgz .