From 962c220079ab4e10e7b9d90abd9351a9d54644df Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Mon, 17 Jun 2024 10:03:12 +0200 Subject: [PATCH] add scripts --- ...emote-input_s3-output_s3-work_s3-fusion.sh | 54 +++++++++++++++++++ ...-code_remote-input_s3-output_s3-work_s3.sh | 4 +- ...ode_local-input_s3-output_s3-work_local.sh | 32 +++++++++++ ...l-code_local-input_s3-output_s3-work_s3.sh | 51 ++++++++++++++++++ ...-code_remote-input_s3-output_s3-work_s3.sh | 2 +- 5 files changed, 140 insertions(+), 3 deletions(-) create mode 100755 scripts/run_batch-code_remote-input_s3-output_s3-work_s3-fusion.sh create mode 100755 scripts/run_local-code_local-input_s3-output_s3-work_local.sh create mode 100755 scripts/run_local-code_local-input_s3-output_s3-work_s3.sh diff --git a/scripts/run_batch-code_remote-input_s3-output_s3-work_s3-fusion.sh b/scripts/run_batch-code_remote-input_s3-output_s3-work_s3-fusion.sh new file mode 100755 index 0000000..580e591 --- /dev/null +++ b/scripts/run_batch-code_remote-input_s3-output_s3-work_s3-fusion.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 < $NXF_CONFIG < $NXF_CONFIG <