From d93d241a4cac335060b61bbad4dbdb165561e63f Mon Sep 17 00:00:00 2001 From: Leo-GG Date: Tue, 23 Jan 2024 16:51:34 +0100 Subject: [PATCH] Update plot_variance.py Added per_factor=True to the get_r2 call on the plot_r2 function, allowing to use a group_label without running into errors. Otherwise the r2 dataframe is generated per view and group only, but no Factor column is included --- mofax/plot_variance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mofax/plot_variance.py b/mofax/plot_variance.py index a2a60b2..782e285 100644 --- a/mofax/plot_variance.py +++ b/mofax/plot_variance.py @@ -69,6 +69,7 @@ def plot_r2( views=views, group_label=group_label, groups_df=groups_df, + per_factor=True ) vmax = r2.R2.max() if vmax is None else vmax