Spaces:
Sleeping
Sleeping
wzkariampuzha
commited on
Commit
•
0b17811
1
Parent(s):
9b4d781
Update app.py
Browse files
app.py
CHANGED
@@ -121,13 +121,31 @@ if disease_or_gard_id:
|
|
121 |
NER_pipeline, entity_classes,
|
122 |
extract_diseases,GARD_dict, max_length,
|
123 |
classify_model_vars)
|
124 |
-
st.dataframe(df, height=
|
125 |
-
|
126 |
-
st.
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
- DIS: Rare disease terms or synonyms identified in the abstract from the GARD Dictionary
|
130 |
-
- IDS: GARD IDs identified in the abstract from the GARD Dictionary
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
- EPI: Epidemiology Types are the metrics used to estimate disease burden such as "incidence", "prevalence rate", or "occurrence"
|
132 |
- STAT: Epidemiology Rates describe how many people are afflicted by a disease.
|
133 |
- DATE: The dates when the epidemiologic studies were conducted
|
@@ -135,16 +153,7 @@ if disease_or_gard_id:
|
|
135 |
- SEX: The biological sexes mentioned in the abstract. Useful for diseases that disproportionately affect one sex over the other or may provide context to composition of the study population
|
136 |
- ETHN: Ethnicities, races, and nationalities of those represented in the epidemiologic study.
|
137 |
''')
|
138 |
-
csv = convert_df(df)
|
139 |
-
st.download_button(
|
140 |
-
label="Download epidemiology results for "+disease_or_gard_id+" as CSV",
|
141 |
-
data = csv,
|
142 |
-
file_name=disease_or_gard_id+'.csv',
|
143 |
-
mime='text/csv',
|
144 |
-
)
|
145 |
#st.dataframe(data=None, width=None, height=None)
|
146 |
fig = epi_sankey(sankey_data,disease_or_gard_id)
|
147 |
|
148 |
-
|
149 |
-
st.plotly_chart(fig, use_container_width=True)
|
150 |
-
# st.code(body, language="python")
|
|
|
121 |
NER_pipeline, entity_classes,
|
122 |
extract_diseases,GARD_dict, max_length,
|
123 |
classify_model_vars)
|
124 |
+
st.dataframe(df, height=200)
|
125 |
+
csv = convert_df(df)
|
126 |
+
st.download_button(
|
127 |
+
label="Download epidemiology results for "+disease_or_gard_id+" as CSV",
|
128 |
+
data = csv,
|
129 |
+
file_name=disease_or_gard_id+'.csv',
|
130 |
+
mime='text/csv',
|
131 |
+
)
|
132 |
+
if 'IDS' in list(df.columns):
|
133 |
+
st.markdown('''COLUMNS: \\
|
134 |
+
- PROB_OF_EPI: Probability that the paper is an epidemiologic study based on its abstract. \\
|
135 |
+
- IsEpi: If it is an epidemiologic study (If PROB_OF_EPI >0.5) \\
|
136 |
- DIS: Rare disease terms or synonyms identified in the abstract from the GARD Dictionary
|
137 |
+
- IDS: GARD IDs identified in the abstract from the GARD Dictionary \\
|
138 |
+
- EPI: Epidemiology Types are the metrics used to estimate disease burden such as "incidence", "prevalence rate", or "occurrence"
|
139 |
+
- STAT: Epidemiology Rates describe how many people are afflicted by a disease.
|
140 |
+
- DATE: The dates when the epidemiologic studies were conducted
|
141 |
+
- LOC: Where the epidemiologic studies were conducted.
|
142 |
+
- SEX: The biological sexes mentioned in the abstract. Useful for diseases that disproportionately affect one sex over the other or may provide context to composition of the study population
|
143 |
+
- ETHN: Ethnicities, races, and nationalities of those represented in the epidemiologic study.
|
144 |
+
''')
|
145 |
+
else:
|
146 |
+
st.markdown('''COLUMNS: \\
|
147 |
+
- PROB_OF_EPI: Probability that the paper is an epidemiologic study based on its abstract. \\
|
148 |
+
- IsEpi: If it is an epidemiologic study (If PROB_OF_EPI >0.5) \\
|
149 |
- EPI: Epidemiology Types are the metrics used to estimate disease burden such as "incidence", "prevalence rate", or "occurrence"
|
150 |
- STAT: Epidemiology Rates describe how many people are afflicted by a disease.
|
151 |
- DATE: The dates when the epidemiologic studies were conducted
|
|
|
153 |
- SEX: The biological sexes mentioned in the abstract. Useful for diseases that disproportionately affect one sex over the other or may provide context to composition of the study population
|
154 |
- ETHN: Ethnicities, races, and nationalities of those represented in the epidemiologic study.
|
155 |
''')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
#st.dataframe(data=None, width=None, height=None)
|
157 |
fig = epi_sankey(sankey_data,disease_or_gard_id)
|
158 |
|
159 |
+
st.plotly_chart(fig, use_container_width=True)
|
|
|
|