From 3285c867320aa5732f75d7adea846c992595871a Mon Sep 17 00:00:00 2001 From: Seppe De Winter Date: Thu, 22 Aug 2024 11:23:52 +0200 Subject: [PATCH] Fix repressor / activator classification in dotplot. --- src/scenicplus/plotting/dotplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scenicplus/plotting/dotplot.py b/src/scenicplus/plotting/dotplot.py index e0562cb..60b1b43 100644 --- a/src/scenicplus/plotting/dotplot.py +++ b/src/scenicplus/plotting/dotplot.py @@ -124,7 +124,7 @@ def heatmap_dotplot( # Plotting plotnine.options.figure_size = figsize plotting_df["repressor_activator"] = [ - "activator" if "+" in n.split("_")[2] else "repressor" for n in plotting_df[feature_name_key]] + "activator" if n.split("_")[2].split("/")[0] == "+" else "repressor" for n in plotting_df[feature_name_key]] if split_repressor_activator and len(set(plotting_df["repressor_activator"])) == 2: if orientation == 'vertical': plot = (