jonahcullen / wags

GNU General Public License v3.0
15 stars 6 forks source link

explicit directory locations of slurm_logs and cd in one_wag job script #45

Closed Hexive-UN-03 closed 2 months ago

Hexive-UN-03 commented 2 months ago

Uses the existing work_dir variable to make the slurm_logs directory locations and initial cd to set the slurm job working directory explicit as inside the folder generated by prep_subs.py. Previous behavior made the slurm job working directory the working directory of the user when a slurm job is submitted.

This change should allow users to submit the slurm script generated by one_wag's prep_subs.py via sbatch even when their working directory isn't in the specific generated folder for that sample.

(tested on four random breed canfam3 jobs)