Closed DininduSenanayake closed 1 month ago
I have launched this as snakemake --profile slurm --jobs 100
on a tmux
session
All of the jobs were submitted under
process_apsimx+
job name
Expected number of files to process
❯ ls *.apsimx | wc -l
2614
2612
Following output suggests all of the files were processed correctly based on the Slurm state "COMPLTETED"
❯ sacct | grep "process_apsimx+" | grep "COMPLE" | wc -l
2612
07-db-file-sorter/db-file-sort.py
❯ ls PASSED/*.db | wc -l
2612
Working Snakefile for this rule : https://github.com/nesi/APSIM-HPC/pull/54
Proposed
Snakefile
Snakefile
defines a configuration with the Apptainer settings and excluded files.all
rule defines the final output files we want to create.process_apsimx
rule defines how to process each .apsimx file:.processed
file as output to mark completion.Configure Snakemake - These instructions are for
snakemake > 8
cookiecutter
isn't installed, loadsnakemake
module and runpip install --user cookiecutter
After completing the prompts, the profile scripts and configuration file will be installed in the
$profile_dir
asprofile_name/
[2].You can then use this profile when running Snakemake by adding the
--profile
flag:This will configure Snakemake to submit jobs to Slurm using the settings you specified in the profile[2].
Remember that the profile typically includes scripts for job submission, status checking, and a configuration file (
config.yaml
) that defines default values for Snakemake command line arguments. You may need to adjust these files to match your specific Slurm environment and requirements.