Mercurial > repos > ebi-gxa > pyscenic_aucell
view get_test_data.sh @ 1:3192e6fb85a6 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:21 +0000 |
parents | f408bd51bb59 |
children |
line wrap: on
line source
#!/usr/bin/env bash TF_DATA_LINK='https://raw.githubusercontent.com/aertslab/scenic-nf/master/example/allTFs_hg38.txt' MOTIF2TF_LINK='https://raw.githubusercontent.com/aertslab/scenic-nf/master/example/motifs.tbl' RANKING_LINK='https://zenodo.org/records/13328724/files/genome-ranking_v2.feather' LOOM_INPUT_LINK='https://raw.githubusercontent.com/aertslab/scenic-nf/master/example/expr_mat.loom' REGULONS_LINK='https://zenodo.org/records/13328724/files/regulons.tsv' TF2TARGETS_LINK='https://zenodo.org/records/13328724/files/tf2targets.tsv' function get_data { local link=$1 local fname=$2 if [ ! -f $fname ]; then echo "$fname not available locally, downloading.." wget -O $fname --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 3 $link fi } # get matrix data mkdir -p test-data pushd test-data get_data $TF_DATA_LINK "allTFs_hg38.txt" get_data $MOTIF2TF_LINK "motifs.tbl" get_data $RANKING_LINK "genome-ranking_v2.feather" get_data $LOOM_INPUT_LINK "expr_mat.loom" get_data $REGULONS_LINK regulons.tsv get_data $TF2TARGETS_LINK tf2targets.tsv