From ca92c1bf641dc37022dd9137ed3c4f47f6948565 Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Thu, 21 Mar 2024 14:02:44 +0100 Subject: [PATCH] update scripts --- scripts/resources_s3.sh | 3 ++ ...-code_remote-input_s3-output_s3-work_s3.sh | 54 +++++++++++++++++++ ...al-input_local-output_local-work_local.sh} | 8 +-- ...te-input_local-output_local-work_local.sh} | 9 ++-- ...remote-input_s3-output_local-work_local.sh | 24 +++++++++ ...de_remote-input_s3-output_s3-work_local.sh | 33 ++++++++++++ scripts/{test.sh => verify_output.sh} | 0 7 files changed, 125 insertions(+), 6 deletions(-) create mode 100644 scripts/resources_s3.sh create mode 100755 scripts/run_batch-code_remote-input_s3-output_s3-work_s3.sh rename scripts/{run_local.sh => run_local-code_local-input_local-output_local-work_local.sh} (64%) rename scripts/{run_local_with_remote.sh => run_local-code_remote-input_local-output_local-work_local.sh} (66%) create mode 100755 scripts/run_local-code_remote-input_s3-output_local-work_local.sh create mode 100755 scripts/run_local-code_remote-input_s3-output_s3-work_local.sh rename scripts/{test.sh => verify_output.sh} (100%) diff --git a/scripts/resources_s3.sh b/scripts/resources_s3.sh new file mode 100644 index 0000000..233c0b5 --- /dev/null +++ b/scripts/resources_s3.sh @@ -0,0 +1,3 @@ +set -e + +aws s3 sync resources s3://data-intuitive-tmp/test-nextflow-wave-fusion/resources --delete \ No newline at end of file diff --git a/scripts/run_batch-code_remote-input_s3-output_s3-work_s3.sh b/scripts/run_batch-code_remote-input_s3-output_s3-work_s3.sh new file mode 100755 index 0000000..0f66b23 --- /dev/null +++ b/scripts/run_batch-code_remote-input_s3-output_s3-work_s3.sh @@ -0,0 +1,54 @@ +#!/bin/bash + +set -e + +script_name=$(basename "$0") +TMPOUT=s3://data-intuitive-tmp/test-nextflow-wave-fusion/output/${script_name%.sh} +OUT=output/${script_name%.sh} +RES=s3://data-intuitive-tmp/test-nextflow-wave-fusion/resources +WORK=s3://data-intuitive-tmp/test-nextflow-wave-fusion/work/${script_name%.sh} +NXF_CONFIG=/tmp/${script_name%.sh}.config + +# clear output dir +echo "Clearing output directory" +aws s3 rm $TMPOUT --recursive +[ -d "$OUT" ] && rm -r "$OUT" + +# run component +echo "Running component" + +cat > $NXF_CONFIG <