Skip to content

Commit

Permalink
restructure ftp
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Dec 26, 2024
1 parent 301b89f commit d38ff24
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions dataload/nextflow/load_subgraph.nf
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ process run_materialised_queries {
path(neo_db)

output:
path("materialised_queries")
path("materialised_queries/*")

script:
"""
Expand Down Expand Up @@ -636,8 +636,8 @@ process copy_neo_to_ftp {
"""
#!/usr/bin/env bash
set -Eeuo pipefail
mkdir -p /nfs/ftp/public/databases/spot/kg/${params.config}/${params.timestamp.trim()}
cp -f neo4j.tgz /nfs/ftp/public/databases/spot/kg/${params.config}/${params.timestamp.trim()}/${params.subgraph}_neo4j.tgz
mkdir -p /nfs/ftp/public/databases/spot/kg/${params.subgraph}/${params.timestamp.trim()}
cp -f neo4j.tgz /nfs/ftp/public/databases/spot/kg/${params.subgraph}/${params.timestamp.trim()}/${params.subgraph}_neo4j.tgz
"""
}

Expand All @@ -655,8 +655,8 @@ process copy_summary_to_ftp {
"""
#!/usr/bin/env bash
set -Eeuo pipefail
mkdir -p /nfs/ftp/public/databases/spot/kg/${params.config}/${params.timestamp.trim()}
cp -f ${summary_json} /nfs/ftp/public/databases/spot/kg/${params.config}/${params.timestamp.trim()}/
mkdir -p /nfs/ftp/public/databases/spot/kg/${params.subgraph}/${params.timestamp.trim()}
cp -f ${summary_json} /nfs/ftp/public/databases/spot/kg/${params.subgraph}/${params.timestamp.trim()}/
"""
}

Expand All @@ -674,8 +674,8 @@ process copy_solr_to_ftp {
"""
#!/usr/bin/env bash
set -Eeuo pipefail
mkdir -p /nfs/ftp/public/databases/spot/kg/${params.config}/${params.timestamp.trim()}
cp -f solr.tgz /nfs/ftp/public/databases/spot/kg/${params.config}/${params.timestamp.trim()}/${params.subgraph}_solr.tgz
mkdir -p /nfs/ftp/public/databases/spot/kg/${params.subgraph}/${params.timestamp.trim()}
cp -f solr.tgz /nfs/ftp/public/databases/spot/kg/${params.subgraph}/${params.timestamp.trim()}/${params.subgraph}_solr.tgz
"""
}

Expand All @@ -693,8 +693,8 @@ process copy_sqlite_to_ftp {
"""
#!/usr/bin/env bash
set -Eeuo pipefail
mkdir -p /nfs/ftp/public/databases/spot/kg/${params.config}/${params.timestamp.trim()}
cp -f ${params.subgraph}.sqlite3 /nfs/ftp/public/databases/spot/kg/${params.config}/${params.timestamp.trim()}/${params.subgraph}.sqlite3
mkdir -p /nfs/ftp/public/databases/spot/kg/${params.subgraph}/${params.timestamp.trim()}
cp -f ${params.subgraph}.sqlite3 /nfs/ftp/public/databases/spot/kg/${params.subgraph}/${params.timestamp.trim()}/${params.subgraph}.sqlite3
"""
}

Expand All @@ -713,8 +713,9 @@ process copy_mat_queries_to_ftp {
"""
#!/usr/bin/env bash
set -Eeuo pipefail
mkdir -p /nfs/ftp/public/databases/spot/kg/${params.config}/${params.timestamp.trim()}
cp -f ${csvs} ${sqlite} /nfs/ftp/public/databases/spot/kg/${params.config}/${params.timestamp.trim()}/
mkdir -p /nfs/ftp/public/databases/spot/kg/${params.subgraph}/${params.timestamp.trim()}/query_results
cp -f ${csvs} /nfs/ftp/public/databases/spot/kg/${params.subgraph}/${params.timestamp.trim()}/query_results/
cp -f ${sqlite} /nfs/ftp/public/databases/spot/kg/${params.subgraph}/${params.timestamp.trim()}/query_results/all_query_results.sqlite3.gz
"""
}

Expand Down
2 changes: 1 addition & 1 deletion dataload/scripts/dataload_codon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export GREBI_QUERY_YAMLS_PATH=/nfs/production/parkinso/spot/grebi/materialised_q
export GREBI_TMP=/hps/nobackup/parkinso/spot/grebi/tmp
export GREBI_CONFIG=ebi
export GREBI_IS_EBI=true
export GREBI_TIMESTAMP=$(date +%Y_%m_%d__%H_%M)
export GREBI_TIMESTAMP=$(date +"%Y-%b-%d")
export GREBI_MAX_ENTITIES=1000000000
export GREBI_NEXTFLOW_CONFIG=$GREBI_DATALOAD_HOME/nextflow/codon_nextflow.config
module load nextflow-22.10.1-gcc-11.2.0-ju5saqw
Expand Down

0 comments on commit d38ff24

Please sign in to comment.