#!/bin/bash # ------------------------- # Slurm + Hydra Configuration # ------------------------- main_task="preprocess" data_task_type="fimo" fimo_thresh="1e-2" fimo_thresh_mode="q" max_stored="100000" fimo_outdir="dpacman/data_files/processed/fimo/fimo_out_q" debug="false" # Chromosomes to run #chromosomes=('1' '10' '11' '12' '13' '14' '15' '16' '17' '18' '19' '2' '20' '21' '22' '3' '4' '5' '6' '7' '8' '9' 'X' 'Y') chromosomes=('3') # ------------------------- # Slurm Job Submission # ------------------------- for chrom in "${chromosomes[@]}"; do timestamp=$(date "+%Y-%m-%d_%H-%M-%S") run_dir="$HOME/DPACMAN/logs/${main_task}/${data_task_type}/runs/${timestamp}_chr${chrom}" mkdir -p "$run_dir" sbatch < "${run_dir}/pid.txt" EOF done