Spaces:
Sleeping
Sleeping
Commit
·
1b01b6f
1
Parent(s):
3592cb3
Update app.py
Browse files
app.py
CHANGED
@@ -69,11 +69,13 @@ def convert_df(df):
|
|
69 |
if len(gene_list) > 1:
|
70 |
df = df_total[df_total.index.isin(gene_list)]
|
71 |
st.dataframe(df)
|
72 |
-
|
|
|
|
|
73 |
st.download_button(
|
74 |
-
"
|
75 |
csv,
|
76 |
-
"
|
77 |
"text/csv",
|
78 |
key='download-csv'
|
79 |
)
|
|
|
69 |
if len(gene_list) > 1:
|
70 |
df = df_total[df_total.index.isin(gene_list)]
|
71 |
st.dataframe(df)
|
72 |
+
df['Gene'] = df.index
|
73 |
+
output = df[['Gene', 'XGB_Score']]
|
74 |
+
csv = convert_df(output)
|
75 |
st.download_button(
|
76 |
+
"Download Gene List Prioritisation",
|
77 |
csv,
|
78 |
+
"bp_gene_prioritisation.csv",
|
79 |
"text/csv",
|
80 |
key='download-csv'
|
81 |
)
|