Skip to content

Commit

Permalink
fix: correctly escaping the tab separator - raw strings do not work
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeesters committed Feb 7, 2025
1 parent 1360c86 commit 9bc4638
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup_creators/solutions/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ samples:
B: data/samples/B.fastq

bwa_map:
rg: r"@RG\tID:{sample}\tSM:{sample}"
rg: "@RG\\tID:{sample}\\tSM:{sample}"
4 changes: 2 additions & 2 deletions slides/creators/Decorating_the_Workflow.tex
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ \subsection{The Configuration File}
\begin{frame}[fragile]
\frametitle{Rule Parameters II}
This is usually part of the configuration file(s), too.\newline
If you put this in your config file (the \altverb{r} in \altverb{r"<something>"} stands for "raw strings"):
If you put this in your config file (the double \altverb{\\} "escape" to \altverb{\t}):
\begin{lstlisting}[language=Python,style=Python]
bwa_map:
rg=r"@RG\tID:{sample}\tSM:{sample}"
rg="@RG\\tID:{sample}\\tSM:{sample}"
\end{lstlisting}
and in your code:
\begin{lstlisting}[language=Python,style=Python]
Expand Down

1 comment on commit 9bc4638

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Artifacts

Please # to comment.