Spaces:
Sleeping
Sleeping
clean up formatting
Browse files
app.py
CHANGED
@@ -79,12 +79,12 @@ chart_data = chart_data.merge(
|
|
79 |
|
80 |
st.markdown(f"""
|
81 |
#### Gene 1:
|
82 |
-
* gene_id
|
83 |
-
* description
|
84 |
|
85 |
#### Gene 2:
|
86 |
-
* gene_id
|
87 |
-
* description
|
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(
|