Skip to content

Commit

Permalink
fix: slide order corrected to introduce workflow profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeesters committed Apr 25, 2024
1 parent fc398da commit f0d1743
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions slides/creators/Decorating_the_Workflow.tex
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,43 @@ \subsection{The Command Line}
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]
\frametitle{The \Snakemake{} \texttt{resources} Section}
\Snakemake{} rules provide an additional \altverb{resources} section:
\begin{lstlisting}[language=Python,style=Python]
rule <name>:
...
resources:
partition='parallel',
mem_mb=1800,
cpus_per_task=4
\end{lstlisting}
\begin{hint}
Note the \textbf{,}!
\end{hint}
\pause
\begin{docs}
You \emph{may} define \emph{any} resource keyword within any rule.
\end{docs}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{The \Snakemake{} \texttt{resources} Section - its Downside}
\begin{block}{Every Resource Spec needs a Change per Rule???}
You might have noticed, this specification per rule is most untidy. \Snakemake's design principle is: ship workflows which run \emph{everywhere} \& \emph{every time}.
\newline \pause
Relax: Every bit we can specify:
\begin{itemize}
\item in a \altverb{Snakefile},
\item on the command line,
\item and re-usable in configuration files!
\end{itemize}
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]
\frametitle{Cluster Configuration}
Expand Down Expand Up @@ -528,43 +565,6 @@ \subsection{The Command Line}
\end{question}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]
\frametitle{The \Snakemake{} \texttt{resources} Section}
\Snakemake{} rules provide an additional \altverb{resources} section:
\begin{lstlisting}[language=Python,style=Python]
rule <name>:
...
resources:
partition='parallel',
mem_mb=1800,
cpus_per_task=4
\end{lstlisting}
\begin{hint}
Note the \textbf{,}!
\end{hint}
\pause
\begin{docs}
You \emph{may} define \emph{any} resource keyword within any rule.
\end{docs}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{The \Snakemake{} \texttt{resources} Section - its Downside}
\begin{block}{Every Resource Spec needs a Change per Rule???}
You might have noticed, this specification per rule is most untidy. \Snakemake's design principle is: ship workflows which run \emph{everywhere} \& \emph{every time}.
\newline \pause
Relax: Every bit we can specify:
\begin{itemize}
\item in a \altverb{Snakefile},
\item on the command line,
\item and re-usable in configuration files!
\end{itemize}
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]
\frametitle{Local Rules}
Expand Down

0 comments on commit f0d1743

Please # to comment.