Skip to content

Commit fd53034

Browse files
committed
UPDATE texts and FIX data ret. bugs
1 parent b832567 commit fd53034

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

gnomad_api_gui.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
st.info("""
5454
- This API tool uses [gnomAD GraphQL backend service](https://gnomad.broadinstitute.org/api).
5555
- Upload your .csv/tsv/txt file containing the single type of identifiers as one column.
56-
- Each row should correspond to single record (i.e. gene name, gene ID, rsID, transcript ID).
56+
- Each row should correspond to single record (i.e. gene name, gene ID, transcript ID or rsID).
5757
- By using the app, you agree that you accepting [the disclaimer](https://github.com/furkanmtorun/gnomad_python_api#hash-disclaimer).
5858
""")
5959

@@ -920,13 +920,13 @@ def generate_plot(search_by, filter_by, mode):
920920
except AttributeError as ae:
921921

922922
# Error Message from gnomAD
923-
if filter_by != 'rs_id':
924-
try:
925-
for msg in response.json()["errors"]:
926-
st.error("Errors from gnomAD for your process:\n\t" + msg["message"])
927-
except Exception as anyOtherException:
928-
pass
929-
923+
try:
924+
for msg in response.json()["errors"]:
925+
st.error("Errors from gnomAD for your process:\n\t" + msg["message"])
926+
except Exception as anyOtherException:
927+
pass
928+
929+
if filter_by != "rs_id":
930930
# General Error Message
931931
st.warning("""
932932
It might be caused since the search did not find a result from the database.
@@ -939,8 +939,6 @@ def generate_plot(search_by, filter_by, mode):
939939
>
940940
> If you think this should not occur, you can contact with developer to issue this problem on Github page.
941941
""".format(ae))
942-
else:
943-
pass
944942

945943
except (TypeError, KeyError):
946944
try:

0 commit comments

Comments
 (0)