Skip to content

Commit

Permalink
Fix repressor / activator classification in dotplot.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeppeDeWinter authored Aug 22, 2024
1 parent fa55dae commit 3285c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scenicplus/plotting/dotplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 3285c86

Please sign in to comment.