loop over list with input files for whom to perform same analysis per chromosome
- tmp.files.txt > text file with absolute file paths; one file per line
- example_script.sh > analysis script which will be executed once per sample and chromosome
./while_loop.sh- update files to work on by replacing tmp.files.txt
- update chromosome to work on by modifying array called chromosomes in while_loop.sh
- change analysis script by replacing example_script.sh
Based on UCL CS cluster, instead of using a loop to submit same job for numerous input files, setup a job array. Advantage is that the number of jobs to be run in parallel can be defined, which is of interest for especially demanding computations.
-- none -- script created temporary test files
./test_array_scratch.sh