comparison get_test_data.sh @ 0:59a7f3f83aec draft

planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 20f4a739092bd05106d5de170523ad61d66e41fc
author ebi-gxa
date Sun, 24 Sep 2023 08:44:24 +0000
parents
children 893ff9213a34
comparison
equal deleted inserted replaced
-1:000000000000 0:59a7f3f83aec
1 #!/usr/bin/env bash
2
3 BASENAME_FILE='mito_counted_anndata.h5ad'
4
5 MTX_LINK='https://zenodo.org/record/7053673/files/Mito-counted_AnnData'
6
7 # convenience for getting data
8 function get_data {
9 local link=$1
10 local fname=$2
11
12 if [ ! -f $fname ]; then
13 echo "$fname not available locally, downloading.."
14 wget -O $fname --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 3 $link
15 fi
16 }
17
18 # get matrix data
19 mkdir -p test-data
20 pushd test-data
21 get_data $MTX_LINK $BASENAME_FILE