Skip to content

Commit

Permalink
Add script to filter and create tool table for every community
Browse files Browse the repository at this point in the history
  • Loading branch information
bebatut committed Nov 2, 2023
1 parent c1da781 commit d12f067
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 26 deletions.
39 changes: 39 additions & 0 deletions bin/get_community_tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env bash


for com_data_fp in data/* ; do
if [[ -d "$com_data_fp" && ! -L "$com_data_fp" ]]; then
community=`basename "$com_data_fp"`

echo "$community";

if [[ "$community" == *"microgalaxy"* ]]; then
curl \
-L \
"https://docs.google.com/spreadsheets/d/1Nq_g-CPc8t_eC4M1NAS9XFJDflA7yE3b9hfSg3zu9L4/export?format=tsv&gid=1533244711" \
-o "data/$community/tools_to_keep"

curl \
-L \
"https://docs.google.com/spreadsheets/d/1Nq_g-CPc8t_eC4M1NAS9XFJDflA7yE3b9hfSg3zu9L4/export?format=tsv&gid=672552331" \
-o "data/$community/tools_to_exclude"
fi;


mkdir -p "results/$community"

python bin/extract_galaxy_tools.py \
filtertools \
--tools "results/all_tools.tsv" \
--filtered_tools "results/$community/tools.tsv" \
--categories "data/$community/categories" \
--exclude "data/$community/tools_to_exclude" \
--keep "data/$community/tools_to_keep"

python bin/create_interactive_table.py \
--table "results/$community/tools.tsv" \
--template "data/interactive_table_template.html" \
--output "results/$community/index.html"

fi;
done
26 changes: 0 additions & 26 deletions bin/get_microgalaxy_tools.sh

This file was deleted.

0 comments on commit d12f067

Please sign in to comment.