File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1113,7 +1113,7 @@ def plot_gene_fits(
1113
1113
from matplotlib import rcParams
1114
1114
1115
1115
plt .ioff ()
1116
- nrows = len (par_loc ) // ncols + int ((len (par_loc ) % ncols ) > 0 )
1116
+ nrows = len (gene_names ) // ncols + int ((len (gene_names ) % ncols ) > 0 )
1117
1117
1118
1118
gs = gridspec .GridSpec (
1119
1119
nrows = nrows ,
@@ -1142,14 +1142,14 @@ def plot_gene_fits(
1142
1142
})
1143
1143
if covariate_x is not None :
1144
1144
if covariate_x in self .model_estim .design_loc .columns :
1145
- summary_fit ["x" ] = self .model_estim .design_loc . [covariate_x ]
1146
- else
1145
+ summary_fit ["x" ] = self .model_estim .design_loc [covariate_x ]
1146
+ else :
1147
1147
raise ValueError ("covariate_x=%s not found in location model" % covariate_x )
1148
1148
1149
1149
if covariate_hue is not None :
1150
1150
if covariate_hue in self .model_estim .design_loc .columns :
1151
- summary_fit ["hue" ] = self .model_estim .design_loc . [covariate_hue ]
1152
- else
1151
+ summary_fit ["hue" ] = self .model_estim .design_loc [covariate_hue ]
1152
+ else :
1153
1153
raise ValueError ("covariate_x=%s not found in location model" % covariate_x )
1154
1154
1155
1155
# Prepare model fit plot.
You can’t perform that action at this time.
0 commit comments