Skip to content

Commit

Permalink
use separate nextflow work dirs for different subgraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Sep 11, 2024
1 parent 7f27d4e commit 1102073
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/dataload_codon.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
for subgraph in config['subgraphs']:
print(f"===== LOADING SUBGRAPH: {subgraph} =====")
os.environ['GREBI_SUBGRAPH'] = subgraph
res = os.system(f'nextflow {GREBI_HOME}/nextflow/01_create_subgraph.nf -c {GREBI_HOME}/nextflow/codon_nextflow.config')
res = os.system(f'NXF_WORK=work_{subgraph} nextflow {GREBI_HOME}/nextflow/01_create_subgraph.nf -c {GREBI_HOME}/nextflow/codon_nextflow.config')
if res != 0:
exit(res)
print(f"===== FINISHED LOADING SUBGRAPH: {subgraph} =====")

res = os.system(f'nextflow {GREBI_HOME}/nextflow/02_create_dbs.nf -c {GREBI_HOME}/nextflow/codon_nextflow.config')
res = os.system(f'NXF_WORK=work_combined nextflow {GREBI_HOME}/nextflow/02_create_dbs.nf -c {GREBI_HOME}/nextflow/codon_nextflow.config')
if res != 0:
exit(res)

2 changes: 1 addition & 1 deletion scripts/dataload_codon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export PYTHONPATH="/homes/spotbot/.local/lib/python3.6/site-packages:$PYTHONPATH
cd /hps/nobackup/parkinso/spot/grebi/
export PYTHONUNBUFFERED=true
srun -p datamover --time 1:0:0 --mem 8g bash -c "rm -rf /nfs/public/rw/ontoapps/grebi/staging && mkdir /nfs/public/rw/ontoapps/grebi/staging"
srun --time 3-0:0:0 --mem 8g bash -c "rm -rf work tmp && python3 ${GREBI_HOME}/scripts/dataload_codon.py"
srun --time 3-0:0:0 --mem 8g bash -c "rm -rf work* tmp && python3 ${GREBI_HOME}/scripts/dataload_codon.py"
#srun --time 23:0:0 --mem 8g bash -c "python3 ${GREBI_HOME}/scripts/dataload_codon.py"


0 comments on commit 1102073

Please sign in to comment.