comparison get_test_data.sh @ 0:dcc82e999439 draft

"planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/tree/develop/tools/qc/fastq_utils commit 3922947623a7f343e3d0475e82b72bba75c794e7"
author ebi-gxa
date Tue, 15 Feb 2022 07:54:15 +0000
parents
children ebca4912eabe
comparison
equal deleted inserted replaced
-1:000000000000 0:dcc82e999439
1 #!/usr/bin/env bash
2
3 BASE_LINK="https://raw.githubusercontent.com/nunofonseca/fastq_utils/master/tests"
4
5 BAR11_FILE="barcode_test_1.fastq.gz"
6 BAR12_FILE="barcode_test_2.fastq.gz"
7 BAR21_FILE="barcode_test2_1.fastq.gz"
8 BAR22_FILE="barcode_test2_2.fastq.gz"
9 INTER_FILE="inter.fastq.gz"
10 A1_FILE="a_1.fastq.gz"
11 POLYAT_FILE="poly_at.fastq.gz"
12 POLYAT3_FILE="poly_at_len3.fastq.gz"
13
14 BAR11_LINK=$BASE_LINK"/"$BAR11_FILE
15 BAR12_LINK=$BASE_LINK"/"$BAR12_FILE
16 BAR21_LINK=$BASE_LINK"/"$BAR21_FILE
17 BAR22_LINK=$BASE_LINK"/"$BAR22_FILE
18 INTER_LINK=$BASE_LINK"/"$INTER_FILE
19 A1_LINK=$BASE_LINK"/"$A1_FILE
20 POLYAT_LINK=$BASE_LINK"/"$POLYAT_FILE
21 POLYAT3_LINK=$BASE_LINK"/"$POLYAT3_FILE
22
23 function get_data {
24 local link=$1
25 local fname=$2
26
27 if [ ! -f $fname ]; then
28 echo "$fname not available locally, downloading.."
29 wget -O $fname --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 3 $link
30 fi
31 }
32
33 # Get test data
34 pushd test-data
35
36 get_data $BAR11_LINK $BAR11_FILE
37 get_data $BAR12_LINK $BAR12_FILE
38 get_data $BAR21_LINK $BAR21_FILE
39 get_data $BAR22_LINK $BAR22_FILE
40 get_data $INTER_LINK $INTER_FILE
41 get_data $A1_LINK $A1_FILE
42 get_data $POLYAT_LINK $POLYAT_FILE
43 get_data $POLYAT3_LINK $POLYAT3_FILE