Mercurial > repos > ebi-gxa > pyscenic_aucell
annotate get_test_data.sh @ 0:f408bd51bb59 draft
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
author | ebi-gxa |
---|---|
date | Tue, 20 Aug 2024 12:48:20 +0000 |
parents | |
children |
rev | line source |
---|---|
0
f408bd51bb59
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 |
f408bd51bb59
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' |
f408bd51bb59
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' |
f408bd51bb59
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' |
f408bd51bb59
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' |
f408bd51bb59
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
6 |
f408bd51bb59
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' |
f408bd51bb59
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' |
f408bd51bb59
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
9 |
f408bd51bb59
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 { |
f408bd51bb59
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 |
f408bd51bb59
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 |
f408bd51bb59
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
13 |
f408bd51bb59
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 |
f408bd51bb59
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.." |
f408bd51bb59
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 |
f408bd51bb59
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
17 fi |
f408bd51bb59
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
18 } |
f408bd51bb59
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
ebi-gxa
parents:
diff
changeset
|
19 |
f408bd51bb59
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 |
f408bd51bb59
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 |
f408bd51bb59
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 |
f408bd51bb59
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" |
f408bd51bb59
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" |
f408bd51bb59
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" |
f408bd51bb59
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" |
f408bd51bb59
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 |
f408bd51bb59
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 |