#!/bin/bash

############ AUTOSUBMIT INPUTS ############
proj_dir=%PROJDIR%
outdir=%common.OUTDIR%
script=%common.SCRIPT%
CHUNK=%CHUNK%
###############################

cd $proj_dir

source chunk_to_recipe

# atomic_recipe_number=$(printf "%02d" $CHUNK)
atomic_recipe=${outdir}/logs/recipes/atomic_recipe_${recipe}.yml

source MODULES

Rscript ${script} ${atomic_recipe}
