maom commited on
Commit
1807dda
·
verified ·
1 Parent(s): 8e4903c

add download button

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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)