forked from MaayanLab/rummagene
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapply_update.sh
32 lines (28 loc) · 1.57 KB
/
apply_update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
PYTHON=python3
VERSION=$1
source venv/bin/activate
if [ -z "$VERSION" ]; then
echo "Usage: ./apply_update.sh VERSION"
exit 1
fi
echo "Ingesting new GMT files..."
$PYTHON ETL/helper.py ingest -i ETL/out/gmts/human-geo-auto_$VERSION.gmt --species human
$PYTHON ETL/helper.py ingest -i ETL/out/gmts/mouse-geo-auto_$VERSION.gmt --species mouse
echo "Ingesting GSE metadata..."
$PYTHON ETL/helper.py ingest-gse-info --species human --path ETL/out/gse_info_human_$VERSION.json
$PYTHON ETL/helper.py ingest-gse-info --species mouse --path ETL/out/gse_info_mouse_$VERSION.json
echo "Ingesting GSE key terms..."
$PYTHON ETL/helper.py ingest-gse-attrs --species human --path ETL/out/keyterms/gse_key_terms_clean_human_$VERSION.json
$PYTHON ETL/helper.py ingest-gse-attrs --species mouse --path ETL/out/keyterms/gse_key_terms_clean_mouse_$VERSION.json
echo "Ingesting PubMed metadata..."
$PYTHON ETL/helper.py ingest-pb-info
echo "Ingesting term categories..."
$PYTHON ETL/helper.py ingest-term-categories --path ETL/out/keyterms/key_terms_categorized_human_$VERSION.json
$PYTHON ETL/helper.py ingest-term-categories --path ETL/out/keyterms/key_terms_categorized_mouse_$VERSION.json
echo "Ingesting Enrichr terms..."
$PYTHON ETL/helper.py ingest-enrichr-terms --species human --path ETL/out/enrichr/enrichr_terms_human_$VERSION.json
$PYTHON ETL/helper.py ingest-enrichr-terms --species mouse --path ETL/out/enrichr/enrichr_terms_mouse_$VERSION.json
echo "Updating backgrounds..."
$PYTHON ETL/helper.py update-background --species human
$PYTHON ETL/helper.py update-background --species mouse