Skip to content

Commit

Permalink
feat: optional rendering of slurm account - barndard cluster has defa…
Browse files Browse the repository at this point in the history
…ult accounts
  • Loading branch information
cmeesters committed Apr 24, 2024
1 parent 3c19fe2 commit 2752135
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/config_dresden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ cluster:
name: "Barnard"
distro: "RedHat"
# the cluster account and default partition
account: "m2_jgu-ngstraining"
partition: "smp"
#account: "m2_jgu-ngstraining"
partition: "barnard"
# the local and remote storage prefixes on this cluster
remotejoblocalstorageprefix: "/dev/shm/$USER/snakemake"
localstorageprefix: "/dev/shm/$USER/snakemake"
5 changes: 3 additions & 2 deletions slides/creators/Decorating_the_Workflow.tex
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,9 @@ \subsection{The Command Line}
Without specifying our SLURM-account and a (default) partition, submitting batch jobs will fail. \Snakemake{} allows to define so-called default resources (using \altverb{--default-resources}). With them our minimal command line becomes:
\begin{lstlisting}[language=Bash, style=Shell, basicstyle=\footnotesize]
$ snakemake --executor slurm \
> --default-resources slurm_account=<++cluster.account++> \
> slurm_partition=<++cluster.partition++>
> --default-resources slurm_partition=<++cluster.partition++>
<+++ if cluster.account is defined +++> \
> slurm_account=<++cluster.account++><+++ endif +++>
\end{lstlisting}
\begin{hint}
Please notice the missing quotation marks! All arguments belong to one parameter.
Expand Down

0 comments on commit 2752135

Please # to comment.