Skip to content

Commit 80b3806

Browse files
author
Trevor Keller
authored
Merge pull request #37 from psteinb/create-logs
minor fixes adapting to behavior observed with snakemake 6.0.5
2 parents 054c311 + adf1151 commit 80b3806

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

_episodes/13-cluster.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ cluster: "sbatch --time={resources.time_min} --mem={resources.mem_mb}
197197
-e slurm/logs/{rule}_{wildcards}"
198198
jobs: 25
199199
default-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.
206206
the cluster.
207207
Here we've used SLURM's `sbatch` command and arguments for setting time limits
208208
and 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+
211213
Values for any command line argument to snakemake can be defined in our
212214
profile, although a value is required (e.g. the `--use-conda` argument could be
213215
included in our profile with `use-conda: true`).
216+
214217
`jobs` specifies the maximum number of jobs that will be submitted at one time.
215218
We also specified the `default-resources` that will be requested for each job,
216219
while `resources` defines the resource limits.
220+
217221
With these parameters, snakemake will use no more than 100 cpus and 100000 MB
218222
(100 GB) at a time between all currently submitted jobs.
219223
While it does not come into play here, a generally sensible default is slightly

0 commit comments

Comments
 (0)