Skip to content

Commit

Permalink
fix nextflow issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Jun 11, 2024
1 parent 40bfeb8 commit 1ead99b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions grebi.nf
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ process materialise {
cat ${merged_filename} \
| ${params.home}/target/release/grebi_materialise \
--in-metadata-jsonl ${metadata_jsonl} \
--in-summary-json ${summary_json} \
--out-edges-jsonl edges.jsonl \
--exclude ${exclude.iterator().join(",")} \
> nodes.jsonl
Expand All @@ -230,9 +231,11 @@ process materialise {

process create_rocks {
cache "lenient"
memory "400 GB"
time "8h"
memory "800 GB"
time "23h"
cpus "8"
errorStrategy 'retry'
maxRetries 10

input:
val(materialised)
Expand All @@ -246,7 +249,7 @@ process create_rocks {
set -Eeuo pipefail
cat ${materialised.iterator().join(" ")} \
| ${params.home}/target/release/grebi_make_rocks \
--rocksdb-path /dev/shm/rocksdb
--rocksdb-path /dev/shm/rocksdb && \
mv /dev/shm/rocksdb .
"""
}
Expand Down Expand Up @@ -571,8 +574,8 @@ process copy_neo_to_staging {
"""
#!/usr/bin/env bash
set -Eeuo pipefail
rm -rf /nfs/public/rw/ontoapps/grebi/staging/neo4j && mkdir /nfs/public/rw/ontoapps/grebi/staging/neo4j
cp -r * /nfs/public/rw/ontoapps/grebi/staging/neo4j/
rm -rf /nfs/public/rw/ontoapps/grebi/staging/neo4j
cp -LR neo4j /nfs/public/rw/ontoapps/grebi/staging/neo4j
"""
}

Expand All @@ -595,7 +598,7 @@ process copy_solr_to_staging {
rm -rf /nfs/public/rw/ontoapps/grebi/staging/solr && mkdir /nfs/public/rw/ontoapps/grebi/staging/solr
cp -f ${solr_config}/*.xml .
cp -f ${solr_config}/*.cfg .
cp -r * /nfs/public/rw/ontoapps/grebi/staging/solr/
cp -LR * /nfs/public/rw/ontoapps/grebi/staging/solr/
"""
}

Expand All @@ -614,8 +617,8 @@ process copy_rocksdb_to_staging {
"""
#!/usr/bin/env bash
set -Eeuo pipefail
rm -rf /nfs/public/rw/ontoapps/grebi/staging/rocksdb && mkdir /nfs/public/rw/ontoapps/grebi/staging/rocksdb
cp -r * /nfs/public/rw/ontoapps/grebi/staging/rocksdb/
rm -rf /nfs/public/rw/ontoapps/grebi/staging/rocksdb
cp -LR rocksdb /nfs/public/rw/ontoapps/grebi/staging/rocksdb
"""
}

Expand Down

0 comments on commit 1ead99b

Please sign in to comment.