Mercurial > repos > ebi-gxa > pyscenic_ctx
annotate get_test_data.sh @ 1:3ce4ff3b9f1b draft default tip
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 6f7bc53bd9da7ee2a480b5aa2d1825209738c4c4
author | ebi-gxa |
---|---|
date | Sun, 15 Sep 2024 10:13:40 +0000 |
parents | 931cd3661690 |
children |
rev | line source |
---|---|
0
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
1 #!/usr/bin/env bash |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
2 TF_DATA_LINK='https://raw.githubusercontent.com/aertslab/scenic-nf/master/example/allTFs_hg38.txt' |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
3 MOTIF2TF_LINK='https://raw.githubusercontent.com/aertslab/scenic-nf/master/example/motifs.tbl' |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
4 RANKING_LINK='https://zenodo.org/records/13328724/files/genome-ranking_v2.feather' |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
5 LOOM_INPUT_LINK='https://raw.githubusercontent.com/aertslab/scenic-nf/master/example/expr_mat.loom' |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
6 |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
7 REGULONS_LINK='https://zenodo.org/records/13328724/files/regulons.tsv' |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
8 TF2TARGETS_LINK='https://zenodo.org/records/13328724/files/tf2targets.tsv' |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
9 |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
10 function get_data { |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
11 local link=$1 |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
12 local fname=$2 |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
13 |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
14 if [ ! -f $fname ]; then |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
15 echo "$fname not available locally, downloading.." |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
16 wget -O $fname --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 3 $link |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
17 fi |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
18 } |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
19 |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
20 # get matrix data |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
21 mkdir -p test-data |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
22 pushd test-data |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
23 get_data $TF_DATA_LINK "allTFs_hg38.txt" |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
24 get_data $MOTIF2TF_LINK "motifs.tbl" |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
25 get_data $RANKING_LINK "genome-ranking_v2.feather" |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
26 get_data $LOOM_INPUT_LINK "expr_mat.loom" |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
27 get_data $REGULONS_LINK regulons.tsv |
931cd3661690
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
28 get_data $TF2TARGETS_LINK tf2targets.tsv |