Spaces:
Sleeping
Sleeping
Commit
·
add7386
1
Parent(s):
71e83c6
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ if len(gene_list) > 1:
|
|
134 |
st.caption("SHAP Summary Plot of All Input Genes")
|
135 |
feature_order = np.argsort(np.sum(np.abs(shap_values), axis=0)[:-1])
|
136 |
feature_order = feature_order[-min(8, len(feature_order)):]
|
137 |
-
col_order = [
|
138 |
st.caption("Interactive SHAP Summary Plot of All Input Genes")
|
139 |
mpl_fig = shap_summary_plot(shap_values, df_shap, max_display=8, show=False, feature_names=col_order)
|
140 |
plotly_fig = tls.mpl_to_plotly(mpl_fig)
|
|
|
134 |
st.caption("SHAP Summary Plot of All Input Genes")
|
135 |
feature_order = np.argsort(np.sum(np.abs(shap_values), axis=0)[:-1])
|
136 |
feature_order = feature_order[-min(8, len(feature_order)):]
|
137 |
+
col_order = [df_shap.columns[i] for i in feature_order]
|
138 |
st.caption("Interactive SHAP Summary Plot of All Input Genes")
|
139 |
mpl_fig = shap_summary_plot(shap_values, df_shap, max_display=8, show=False, feature_names=col_order)
|
140 |
plotly_fig = tls.mpl_to_plotly(mpl_fig)
|