-
Notifications
You must be signed in to change notification settings - Fork 6
Script Style Guide
ejh243 edited this page Jun 29, 2022
·
8 revisions
comments are preceeded by 1 #, Where scripts are organised into sections, section headers are all CAPITALS
Job submission scripts to be numbered. Numbers should be sequential even even task aren't necessarily. Job submission scripts that "start" with batch, indicated an array job with some element of parallelisation across samples (not nesseccariy 1 job per sample).
processing scripts not numbered.
SLURM scheduler
Start with a series of check to confirm variables are as expected.
use dashed line to separate checks from main body
`##
*
#-------------------------------#
MAIN ` where MAIN is the code body of the script Start with an initiation statement End with completion statement.