-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun_all.sh
59 lines (33 loc) · 1.53 KB
/
run_all.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#! /usr/bin/env bash
if [[ ! ${CONDA_PREFIX} =~ ^.*mdws$ ]]
then
echo "Please activate the mdws conda environment"
exit 1
fi
echo "Conda environment is in: ${CONDA_PREFIX}"
echo "SCRAPING ZENODO"
python scripts/scrap_zenodo.py --query params/query.yml --output data
echo "SCRAPING FIGSHARE"
python scripts/scrap_figshare.py --query params/query.yml --output data
echo "SCRAPING OSF"
python scripts/scrap_osf.py --query params/query.yml --output data
echo "DOWNLOADING GROMACS .MDP and .GRO FILES FROM ZENODO"
python scripts/download_files.py --input data/zenodo_files.tsv \
--storage data/downloads/ --type mdp --type gro --withzipfiles
echo "DOWNLOADING GROMACS .MDP and .GRO FILES FROM FIGSHARE"
python scripts/download_files.py --input data/figshare_files.tsv \
--storage data/downloads/ --type mdp --type gro --withzipfiles
echo "DOWNLOADING GROMACS .MDP and .GRO FILES FROM OSF"
python scripts/download_files.py --input data/osf_files.tsv \
--storage data/downloads/ --type mdp --type gro --withzipfiles
echo "PARSING GROMACS .MDP FILES"
python scripts/parse_mdp_files.py \
--input data/zenodo_files.tsv --input data/figshare_files.tsv --input data/osf_files.tsv \
--storage data/downloads --output data
echo "PARSING GROMACS .GRO FILES"
python scripts/parse_gro_files.py \
--input data/zenodo_files.tsv --input data/figshare_files.tsv --input data/osf_files.tsv \
--storage data/downloads --residues params/residue_names.yml --output data
echo "EXPORTING TO PARQUET"
python scripts/export_to_parquet.py
echo "ALL JOBS DONE!"