#!/bin/bash

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

cd $proj_dir

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

source MODULES

Rscript ${script} ${atomic_recipe}
