Spaces:
Sleeping
Sleeping
fatmacankara
commited on
Commit
·
80cfda5
1
Parent(s):
0c1f4df
Update ASCARIS.py
Browse files- ASCARIS.py +4 -20
ASCARIS.py
CHANGED
@@ -33,30 +33,13 @@ st.write('')
|
|
33 |
st.write('')
|
34 |
|
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 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
parser = argparse.ArgumentParser(description='ASCARIS')
|
45 |
-
|
46 |
-
#parser.add_argument('-s', '--source_option',
|
47 |
-
# help='Selection of input structure data.\n 1: PDB Structures (default), 2: AlphaFold Structures',
|
48 |
-
# default=1)
|
49 |
-
#parser.add_argument('-i', '--input_datapoint',
|
50 |
-
# help='Input file or query datapoint\n Option 1: Comma-separated list of identifiers (UniProt ID-wt residue-position-mutated residue (e.g. Q9Y4W6-N-432-T or Q9Y4W6-N-432-T, Q9Y4W6-N-432-T)) \n Option 2: Enter comma-separated file path')
|
51 |
-
#
|
52 |
-
#parser.add_argument('-impute', '--imputation_state', default='True',
|
53 |
-
# help='Whether resulting feature vector should be imputed or not. Default True.')
|
54 |
-
|
55 |
-
#args = parser.parse_args()
|
56 |
|
57 |
-
input_set = input_data
|
58 |
-
mode = source
|
59 |
-
impute = impute
|
60 |
submitted = st.form_submit_button(label="Submit", help=None, on_click=None, args=None, kwargs=None, type="secondary", disabled=False, use_container_width=False)
|
61 |
print('*****************************************')
|
62 |
print('Feature vector generation is in progress. \nPlease check log file for updates..')
|
@@ -67,6 +50,7 @@ with st.form('mform', clear_on_submit=False):
|
|
67 |
selected_df = pd.DataFrame()
|
68 |
st.write('The online tool may be slow, especially while processing multiple SAVs, please consider using the local programmatic version at https://github.com/HUBioDataLab/ASCARIS/')
|
69 |
if submitted:
|
|
|
70 |
with st.spinner('In progress...This may take a while...'):
|
71 |
try:
|
72 |
if mode == 1:
|
|
|
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 |
+
mode = 1
|
39 |
impute = st.selectbox('Imputation',[True, False])
|
40 |
|
41 |
+
input_set = st.text_input('Enter SAV data points (Example: Q9Y4W6-N-432-T)')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
|
|
|
|
|
|
43 |
submitted = st.form_submit_button(label="Submit", help=None, on_click=None, args=None, kwargs=None, type="secondary", disabled=False, use_container_width=False)
|
44 |
print('*****************************************')
|
45 |
print('Feature vector generation is in progress. \nPlease check log file for updates..')
|
|
|
50 |
selected_df = pd.DataFrame()
|
51 |
st.write('The online tool may be slow, especially while processing multiple SAVs, please consider using the local programmatic version at https://github.com/HUBioDataLab/ASCARIS/')
|
52 |
if submitted:
|
53 |
+
st.write('submitted.')
|
54 |
with st.spinner('In progress...This may take a while...'):
|
55 |
try:
|
56 |
if mode == 1:
|