get-saved-germline 854 Bytes
Newer Older
1 2
#!/bin/sh

3 4
set -e

5 6 7 8
dir=$(dirname $0)

germline_id=$(cat $dir/germline_id)

9
cat <<EOF
10 11 12 13 14 15 16
By downloading the IMGT germline databases (IMGT/GENE-DB), you
accept the IMGT® license: academic research only, provided that it is referred
to IMGT® and cited as "IMGT®, the international ImMunoGeneTics information
system® http://www.imgt.org (founder and director: Marie-Paule Lefranc,
Montpellier, France).  Lefranc, M.-P., IMGT®, the international ImMunoGeneTics
database, Nucl. Acids Res., 29, 207-209 (2001). PMID:11125093.

17
Otherwise please remove the files from your system.
18 19
EOF

20
wget -N http://www.vidjil.org/germlines/germline-${germline_id}.tar.gz
21
tar xzmfv germline-${germline_id}.tar.gz --strip-components=1 germline/
22 23 24
if [ -d "$dir/../browser" ]; then
    tar xzmfv germline-${germline_id}.tar.gz --strip-components=1 -C $dir/../browser/ browser/
fi