Spaces:
Sleeping
Sleeping
Commit
·
a9b361d
1
Parent(s):
3e613a7
Update app.py
Browse files
app.py
CHANGED
@@ -52,10 +52,18 @@ st.markdown("""
|
|
52 |
A machine learning pipeline for predicting disease-causing genes post-genome-wide association study in blood pressure.
|
53 |
""")
|
54 |
|
55 |
-
gene_input = st.text_input('Input Single HGNC Gene:')
|
56 |
-
df = df_total[df_total.index == gene_input]
|
57 |
-
st.dataframe(df)
|
|
|
|
|
|
|
58 |
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
st.markdown("""
|
61 |
Total Gene Prioritisation Results:
|
|
|
52 |
A machine learning pipeline for predicting disease-causing genes post-genome-wide association study in blood pressure.
|
53 |
""")
|
54 |
|
55 |
+
#gene_input = st.text_input('Input Single HGNC Gene:')
|
56 |
+
#df = df_total[df_total.index == gene_input]
|
57 |
+
#st.dataframe(df)
|
58 |
+
|
59 |
+
|
60 |
+
collect_genes = lambda x : [int(i) for i in re.split(",", x) if i != ""]
|
61 |
|
62 |
+
input_genes = st.text_input("List of HGNC Genes (enter comma separated)")
|
63 |
+
gene_list = st.write(collect_genes(input_genes))
|
64 |
+
|
65 |
+
df = df_total[df_total.index.isin(gene_list)]
|
66 |
+
st.dataframe(df)
|
67 |
|
68 |
st.markdown("""
|
69 |
Total Gene Prioritisation Results:
|