Spaces:
Running
Running
Commit
·
a044018
1
Parent(s):
5d525eb
Update app.py
Browse files
app.py
CHANGED
@@ -37,11 +37,20 @@ predictions = list(xgb.predict(data))
|
|
37 |
|
38 |
output = pd.Series(data=predictions, index=data.index, name="XGB_Score")
|
39 |
df_total = pd.concat([data, output], axis=1)
|
40 |
-
|
41 |
|
42 |
st.title('Blood Pressure Gene Prioritisation Post-GWAS')
|
43 |
st.markdown("""
|
44 |
A machine learning pipeline for predicting disease-causing genes post-genome-wide association study in blood pressure.
|
45 |
""")
|
46 |
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
output = pd.Series(data=predictions, index=data.index, name="XGB_Score")
|
39 |
df_total = pd.concat([data, output], axis=1)
|
40 |
+
df_total['XGB_Score'] = round(df_total['XGB_Score'], 2)
|
41 |
|
42 |
st.title('Blood Pressure Gene Prioritisation Post-GWAS')
|
43 |
st.markdown("""
|
44 |
A machine learning pipeline for predicting disease-causing genes post-genome-wide association study in blood pressure.
|
45 |
""")
|
46 |
|
47 |
+
gene_input = st.text_input('Input HGNC Gene')
|
48 |
+
df = df_total[df_total.index == gene_input]
|
49 |
+
st.dataframe(df)
|
50 |
+
|
51 |
+
|
52 |
+
st.markdown("""
|
53 |
+
Total Gene Prioritisation Results:
|
54 |
+
""")
|
55 |
+
|
56 |
+
st.dataframe(df_total)
|