-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubmit_pipeline.sh
executable file
·31 lines (22 loc) · 1.02 KB
/
submit_pipeline.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
if [ ! -f "$PWD/env" ]; then
echo '$PWD needs to be in the same directory as this file'
exit 1
else
source "$PWD/env"
fi
echo "using workdir: $WORKDIR"
# creates genes.tsv, gbif.tsv, genes.tar.gz
id=$(sbatch link_gbif_with_genbank.sbatch)
# populates database from gbif.tsv
id=$(sbatch --dependency=afterok:${id##* } populate_database.sbatch)
# creates bold.tsv
id=$(sbatch --dependency=afterok:${id##* } filter_bold_records.sbatch)
# populates database from bold.tsv and adds new files or sequences to existing files in genes.tar.gz
id=$(sbatch --dependency=afterok:${id##* } add_bold_records.sbatch)
id=$(sbatch --dependency=afterok:${id##* } update_species_metrics.sbatch)
id=$(sbatch --dependency=afterok:${id##* } clean_database.sbatch)
id=$(sbatch --dependency=afterok:${id##* } update_species_metrics.sbatch)
id=$(sbatch --dependency=afterok:${id##* } align.sbatch)
id=$(sbatch --dependency=afterok:${id##* } update_species_metrics.sbatch)
id=$(sbatch --dependency=afterok:${id##* } report_species_metrics.sbatch)