Spaces:
Sleeping
Sleeping
Commit
·
797c082
1
Parent(s):
460d291
Update ASCARIS.py
Browse files- ASCARIS.py +4 -4
ASCARIS.py
CHANGED
|
@@ -31,11 +31,10 @@ st.write('')
|
|
| 31 |
st.write('')
|
| 32 |
st.write('')
|
| 33 |
st.write('')
|
| 34 |
-
|
| 35 |
with st.form('mform', clear_on_submit=False):
|
| 36 |
-
st.write(' I am here currently.')
|
| 37 |
#source = st.selectbox('Select the protein structure resource (1: PDB-SwissModel-Modbase, 2: AlphaFold)',[1,2])
|
| 38 |
-
|
| 39 |
impute = st.selectbox('Imputation',[True, False])
|
| 40 |
|
| 41 |
input_set = st.text_input('Enter SAV data points (Example: Q9Y4W6-N-432-T)')
|
|
@@ -52,8 +51,10 @@ st.write('The online tool may be slow, especially while processing multiple SAVs
|
|
| 52 |
if submitted:
|
| 53 |
st.write('submitted.')
|
| 54 |
with st.spinner('In progress...This may take a while...'):
|
|
|
|
| 55 |
try:
|
| 56 |
if mode == 1:
|
|
|
|
| 57 |
selected_df = pdb_featureVector.pdb(input_set, mode, impute)
|
| 58 |
|
| 59 |
elif mode == 2:
|
|
@@ -67,7 +68,6 @@ if submitted:
|
|
| 67 |
|
| 68 |
if selected_df is None:
|
| 69 |
st.success('Feature vector failed. Check log file.')
|
| 70 |
-
st.write('Failed here1')
|
| 71 |
|
| 72 |
else:
|
| 73 |
if len(selected_df) != 0 :
|
|
|
|
| 31 |
st.write('')
|
| 32 |
st.write('')
|
| 33 |
st.write('')
|
| 34 |
+
mode = 1
|
| 35 |
with st.form('mform', clear_on_submit=False):
|
|
|
|
| 36 |
#source = st.selectbox('Select the protein structure resource (1: PDB-SwissModel-Modbase, 2: AlphaFold)',[1,2])
|
| 37 |
+
|
| 38 |
impute = st.selectbox('Imputation',[True, False])
|
| 39 |
|
| 40 |
input_set = st.text_input('Enter SAV data points (Example: Q9Y4W6-N-432-T)')
|
|
|
|
| 51 |
if submitted:
|
| 52 |
st.write('submitted.')
|
| 53 |
with st.spinner('In progress...This may take a while...'):
|
| 54 |
+
st.write('HEre')
|
| 55 |
try:
|
| 56 |
if mode == 1:
|
| 57 |
+
st.write('HEre1')
|
| 58 |
selected_df = pdb_featureVector.pdb(input_set, mode, impute)
|
| 59 |
|
| 60 |
elif mode == 2:
|
|
|
|
| 68 |
|
| 69 |
if selected_df is None:
|
| 70 |
st.success('Feature vector failed. Check log file.')
|
|
|
|
| 71 |
|
| 72 |
else:
|
| 73 |
if len(selected_df) != 0 :
|