From 7304115385fb8cf8b8304c217142507d3a12904d Mon Sep 17 00:00:00 2001
From: Blaise Li <blaise.li__git@nsup.org>
Date: Fri, 24 Aug 2018 11:36:09 +0200
Subject: [PATCH] Adjusting tex-escaping of underscores.

---
 PRO-seq/PRO-seq.snakefile | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/PRO-seq/PRO-seq.snakefile b/PRO-seq/PRO-seq.snakefile
index a83e7a1..4d8b565 100644
--- a/PRO-seq/PRO-seq.snakefile
+++ b/PRO-seq/PRO-seq.snakefile
@@ -670,7 +670,7 @@ def plot_scatterplot(outfile, data, data_groups, group2colour):
         plt.scatter(
             data[data_groups==i, 0],
             data[data_groups==i, 1],
-            color=colour, lw=2, label=group)
+            color=colour, lw=2, label=texscape(group))
     plt.xlabel("PC1")
     plt.ylabel("PC2")
     plt.legend(loc="best", shadow=False, scatterpoints=1)
@@ -1262,11 +1262,10 @@ rule make_MA_plot:
                 group2colour=group2colour,
                 lfc_range = params.lfc_range,
                 fold_type = "log2FoldChange",
-                title=texscape(
-                    "MA-plot for %s, %s_%s" % (
-                        wildcards.contrast,
-                        wildcards.orientation,
-                        wildcards.biotype)))
+                title="MA-plot for %s, %s_%s" % (
+                    wildcards.contrast,
+                    wildcards.orientation,
+                    wildcards.biotype))
 
 
 ##################
-- 
GitLab