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