Spaces:
Sleeping
Sleeping
add download button
Browse files
app.py
CHANGED
@@ -40,5 +40,14 @@ top_coexp_hits = top_coexp_hits[[
|
|
40 |
'gene_id_1', 'gene_symbol_1', 'description_1',
|
41 |
'gene_id_2', 'gene_symbol_2', 'description_2',
|
42 |
'coexp_score', 'blastp_EValue']]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
st.table(top_coexp_hits)
|
|
|
40 |
'gene_id_1', 'gene_symbol_1', 'description_1',
|
41 |
'gene_id_2', 'gene_symbol_2', 'description_2',
|
42 |
'coexp_score', 'blastp_EValue']]
|
43 |
+
top_coexp_hits.drop_index()
|
44 |
+
|
45 |
+
|
46 |
+
st.download_button(
|
47 |
+
label="Download data as TSV",
|
48 |
+
data = top_coexp-hits.to_csv(sep ='\t').encode('utf-8'),
|
49 |
+
file_name= f"top_coexp_hits_{gene_id}.tsv",
|
50 |
+
mime="text/csv")
|
51 |
+
|
52 |
|
53 |
st.table(top_coexp_hits)
|