This repository was archived by the owner on Aug 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2- echo $@
3- NEXTFLOW_SCRIPT=$1
2+ # $1 S3 URI to Nextflow project files. If not using S3 set to "".
3+ # $2.. Additional parameters passed on to the nextflow cli
4+
5+ echo " $@ "
6+ NEXTFLOW_PROJECT=$1
47shift
5- NEXTFLOW_PARAMS=$@
8+ NEXTFLOW_PARAMS=" $@ "
69
710# Create the default config using environment variables
811# passed into the container
9- mkdir -p /opt/config
1012NF_CONFIG=~ /.nextflow/config
1113
1214cat << EOF > $NF_CONFIG
2123# to create a unique path
2224GUID=" $AWS_BATCH_JOB_ID /$AWS_BATCH_JOB_ATTEMPT "
2325
26+ if [ " $GUID " = " /" ]; then
27+ GUID=` date | md5sum | cut -d " " -f 1`
28+ fi
29+
2430mkdir -p /opt/work/$GUID
2531cd /opt/work/$GUID
2632
2733# stage workflow definition
28- aws s3 sync --only-show-errors --exclude ' .*' $NEXTFLOW_SCRIPT .
29-
30- NF_FILE=$( find . -name " *.nf" -maxdepth 1)
34+ $NF_FILE =" "
35+ if [ ! -z " $NEXTFLOW_PROJECT " ]; then
36+ aws s3 sync --only-show-errors --exclude ' runs/*' --exclude ' .*' $NEXTFLOW_PROJECT .
37+ NF_FILE=$( find . -maxdepth 1 -name " *.nf" )
38+ fi
3139
3240echo " == Running Workflow =="
3341echo " nextflow run $NF_FILE $NEXTFLOW_PARAMS "
You can’t perform that action at this time.
0 commit comments