initialize simple plotting of drug
Browse files
app.py
CHANGED
@@ -41,11 +41,25 @@ def about_page():
|
|
41 |
well-known benchmarks, particularly in zero-shot settings for unseen protein targets.
|
42 |
"""
|
43 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
# example proteins ["HXHVWPVQDAKARFSEFLDACITEGPQIVSRRGAEEAVLVPIGEWRRLQAAA"], ["AHKLFIGGLPNYLNDDQVKELLTSFGPLKAFNLVKDSATGLSKGYAFCEYVDINVTDQAIAGLNGMQLGDKKLLVQRASVGAKNA"]
|
46 |
|
47 |
page_names_to_func = {
|
48 |
-
'About': about_page
|
|
|
49 |
}
|
50 |
|
51 |
selected_page = st.sidebar.selectbox('Choose function', page_names_to_func.keys())
|
|
|
41 |
well-known benchmarks, particularly in zero-shot settings for unseen protein targets.
|
42 |
"""
|
43 |
)
|
44 |
+
|
45 |
+
def display_dti():
|
46 |
+
|
47 |
+
smiles = st.text_input("Enter the SMILES of the query drug compound", value="CC(=O)OC1=CC=CC=C1C(=O)O", placeholder="CC(=O)OC1=CC=CC=C1C(=O)O")
|
48 |
+
|
49 |
+
if smiles:
|
50 |
+
mol = Chem.MolFromSmiles(smiles)
|
51 |
+
mol_img = Chem.Draw.MolToImage(mol)
|
52 |
+
|
53 |
+
sequence = st.text_input("Enter the amino-acid sequence of the query protein target", value="HXHVWPVQDAKARFSEFLDACITEGPQIVSRRGAEEAVLVPIGEWRRLQAAA", placeholder="HXHVWPVQDAKARFSEFLDACITEGPQIVSRRGAEEAVLVPIGEWRRLQAAA")
|
54 |
+
|
55 |
+
if sequence:
|
56 |
+
st.markdown(f'TODO plot {sequence}')
|
57 |
|
58 |
# example proteins ["HXHVWPVQDAKARFSEFLDACITEGPQIVSRRGAEEAVLVPIGEWRRLQAAA"], ["AHKLFIGGLPNYLNDDQVKELLTSFGPLKAFNLVKDSATGLSKGYAFCEYVDINVTDQAIAGLNGMQLGDKKLLVQRASVGAKNA"]
|
59 |
|
60 |
page_names_to_func = {
|
61 |
+
'About': about_page,
|
62 |
+
'Display DTI': display_dti
|
63 |
}
|
64 |
|
65 |
selected_page = st.sidebar.selectbox('Choose function', page_names_to_func.keys())
|