maom commited on
Commit
e1fa4a3
·
verified ·
1 Parent(s): f1725de

clean up formatting

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -79,12 +79,12 @@ chart_data = chart_data.merge(
79
 
80
  st.markdown(f"""
81
  #### Gene 1:
82
- * gene_id: [{gene_id_1}](https://fungidb.org/fungidb/app/record/gene/{gene_id_1})
83
- * description: {description_1}
84
 
85
  #### Gene 2:
86
- * gene_id: [{gene_id_2}](https://fungidb.org/fungidb/app/record/gene/{gene_id_2})
87
- * description: {description_2}
88
  """)
89
 
90
  chart = (
@@ -94,9 +94,9 @@ chart = (
94
  height = 750)
95
  .mark_circle()
96
  .encode(
97
- x="expression_1",
98
- y="expression_2",
99
- color="study_accession",
100
  tooltip=["run_accession", "study_accession"]))
101
 
102
  st.altair_chart(
 
79
 
80
  st.markdown(f"""
81
  #### Gene 1:
82
+ * *gene_id*: [{gene_id_1}](https://fungidb.org/fungidb/app/record/gene/{gene_id_1})
83
+ * *description*: {description_1}
84
 
85
  #### Gene 2:
86
+ * *gene_id*: [{gene_id_2}](https://fungidb.org/fungidb/app/record/gene/{gene_id_2})
87
+ * *description*: {description_2}
88
  """)
89
 
90
  chart = (
 
94
  height = 750)
95
  .mark_circle()
96
  .encode(
97
+ x=alt.X("expression_1", title=f"{gene_id_1} Expression"),
98
+ y=alt.Y("expression_2", title=f"{gene_id_2} Expression"),
99
+ color=alt.COLOR("study_accession", title="Study Accession")
100
  tooltip=["run_accession", "study_accession"]))
101
 
102
  st.altair_chart(