@@ -197,7 +197,7 @@ cluster: "sbatch --time={resources.time_min} --mem={resources.mem_mb}
197197 -e slurm/logs/{rule}_{wildcards}"
198198jobs: 25
199199default-resources: [cpus=1, mem_mb=1000, time_min=5]
200- resources: [cpus=100, mem_mb=1000000 ]
200+ resources: [cpus=100, mem_mb=100000 ]
201201```
202202{: .source}
203203
@@ -206,14 +206,18 @@ This file has several components.
206206the cluster.
207207Here we've used SLURM's ` sbatch ` command and arguments for setting time limits
208208and resources with snakemake wildcards defining the requested values.
209- We've also specified where to save SLURM logs and what to call them; note that
210- this folder must already exist.
209+
210+ We've also specified where to save SLURM logs and what to call them. ** Note** that
211+ this folder must already exist. If the folders don't exist, snakemake will hang.
212+
211213Values for any command line argument to snakemake can be defined in our
212214profile, although a value is required (e.g. the ` --use-conda ` argument could be
213215included in our profile with ` use-conda: true ` ).
216+
214217` jobs ` specifies the maximum number of jobs that will be submitted at one time.
215218We also specified the ` default-resources ` that will be requested for each job,
216219while ` resources ` defines the resource limits.
220+
217221With these parameters, snakemake will use no more than 100 cpus and 100000 MB
218222(100 GB) at a time between all currently submitted jobs.
219223While it does not come into play here, a generally sensible default is slightly
0 commit comments