Spaces:
Sleeping
Sleeping
Commit
·
b27ef4c
1
Parent(s):
43efedb
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ st.write('')
|
|
28 |
st.write('')
|
29 |
|
30 |
|
31 |
-
with
|
32 |
source = st.selectbox('Select the protein structure resource (1: PDB-SwissModel-Modbase, 2: AlphaFold)',[1,2])
|
33 |
impute = st.selectbox('Imputation',[True, False])
|
34 |
input_data = st.text_input('Enter SAV data points (Format Provided Below)', "P13637-T-613-M, Q9Y4W6-N-432-T",label_visibility=st.session_state.visibility,
|
@@ -38,24 +38,22 @@ with st.form_submit_button(label="Submit", help=None, on_click=None, args=No
|
|
38 |
|
39 |
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
parser
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
mode = source
|
58 |
-
impute = impute
|
59 |
|
60 |
print('*****************************************')
|
61 |
print('Feature vector generation is in progress. \nPlease check log file for updates..')
|
@@ -104,11 +102,14 @@ with st.spinner('In progress...This may take a while...'):
|
|
104 |
update_mode=GridUpdateMode.SELECTION_CHANGED, # or MODEL_CHANGED
|
105 |
custom_css={".ag-header-cell-label": {"justify-content": "center"}})
|
106 |
st.success('Feature vector successfully created.')
|
|
|
107 |
|
|
|
108 |
|
109 |
except:
|
110 |
pass
|
111 |
selected_df = pd.DataFrame()
|
|
|
112 |
|
113 |
def download_button(object_to_download, download_filename):
|
114 |
|
|
|
28 |
st.write('')
|
29 |
|
30 |
|
31 |
+
with st.form_submit_button(label="Submit", help=None, on_click=None, args=None, kwargs=None, type="secondary", disabled=False, use_container_width=False)):
|
32 |
source = st.selectbox('Select the protein structure resource (1: PDB-SwissModel-Modbase, 2: AlphaFold)',[1,2])
|
33 |
impute = st.selectbox('Imputation',[True, False])
|
34 |
input_data = st.text_input('Enter SAV data points (Format Provided Below)', "P13637-T-613-M, Q9Y4W6-N-432-T",label_visibility=st.session_state.visibility,
|
|
|
38 |
|
39 |
|
40 |
|
41 |
+
parser = argparse.ArgumentParser(description='ASCARIS')
|
42 |
+
|
43 |
+
parser.add_argument('-s', '--source_option',
|
44 |
+
help='Selection of input structure data.\n 1: PDB Structures (default), 2: AlphaFold Structures',
|
45 |
+
default=1)
|
46 |
+
parser.add_argument('-i', '--input_datapoint',
|
47 |
+
help='Input file or query datapoint\n Option 1: Comma-separated list of idenfiers (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')
|
48 |
+
|
49 |
+
parser.add_argument('-impute', '--imputation_state', default='True',
|
50 |
+
help='Whether resulting feature vector should be imputed or not. Default True.')
|
51 |
+
|
52 |
+
args = parser.parse_args()
|
53 |
+
|
54 |
+
input_set = input_data
|
55 |
+
mode = source
|
56 |
+
impute = impute
|
|
|
|
|
57 |
|
58 |
print('*****************************************')
|
59 |
print('Feature vector generation is in progress. \nPlease check log file for updates..')
|
|
|
102 |
update_mode=GridUpdateMode.SELECTION_CHANGED, # or MODEL_CHANGED
|
103 |
custom_css={".ag-header-cell-label": {"justify-content": "center"}})
|
104 |
st.success('Feature vector successfully created.')
|
105 |
+
else:
|
106 |
|
107 |
+
int_return = pd.DataFrame()
|
108 |
|
109 |
except:
|
110 |
pass
|
111 |
selected_df = pd.DataFrame()
|
112 |
+
int_return = pd.DataFrame()
|
113 |
|
114 |
def download_button(object_to_download, download_filename):
|
115 |
|