Spaces:
Running
Running
Commit
Β·
0945bb1
1
Parent(s):
3341a5b
Update ASCARIS.py
Browse files- ASCARIS.py +5 -5
ASCARIS.py
CHANGED
@@ -37,7 +37,7 @@ with st.form('mform', clear_on_submit=False):
|
|
37 |
source = st.selectbox('Select the protein structure resource (1: PDB-SwissModel-Modbase, 2: AlphaFold)',[1,2])
|
38 |
#source = 1
|
39 |
impute = st.selectbox('Missing value imputation (mostly for the cases where the corresponding annotation does not exist for the protein of interest)',[True, False])
|
40 |
-
input_data = st.text_input('Enter SAV data points (format: UniProt/Swiss-Prot human protein accession β wild type a.a. β position β mutated a.a.)
|
41 |
|
42 |
|
43 |
|
@@ -65,7 +65,7 @@ with st.form('mform', clear_on_submit=False):
|
|
65 |
mode = int(source)
|
66 |
|
67 |
selected_df = pd.DataFrame()
|
68 |
-
st.write('The online tool may be slow, especially while processing multiple SAVs, please consider using the
|
69 |
if submitted:
|
70 |
with st.spinner('In progress...This may take a while...'):
|
71 |
try:
|
@@ -82,15 +82,15 @@ if submitted:
|
|
82 |
pass
|
83 |
|
84 |
if selected_df is None:
|
85 |
-
st.success('Feature vector failed. Check log file.')
|
86 |
|
87 |
else:
|
88 |
if len(selected_df) != 0 :
|
89 |
st.write(selected_df)
|
90 |
-
st.success('Feature vector successfully created.')
|
91 |
csv = convert_df(selected_df)
|
92 |
|
93 |
st.download_button("Press to Download the Feature Vector", csv,f"ASCARIS_SAV_rep_{input_set}.csv","text/csv",key='download-csv')
|
94 |
|
95 |
else:
|
96 |
-
st.success('Feature vector failed. Check log file.')
|
|
|
37 |
source = st.selectbox('Select the protein structure resource (1: PDB-SwissModel-Modbase, 2: AlphaFold)',[1,2])
|
38 |
#source = 1
|
39 |
impute = st.selectbox('Missing value imputation (mostly for the cases where the corresponding annotation does not exist for the protein of interest)',[True, False])
|
40 |
+
input_data = st.text_input('Enter SAV data points (format: "UniProt/Swiss-Prot human protein accession" β "symbol of the wild type a.a." β "position on the sequence" β "symbol of the mutated a.a."). Example: P04217-E-20-A or O43556-I-40-A,P57737-W-372-A')
|
41 |
|
42 |
|
43 |
|
|
|
65 |
mode = int(source)
|
66 |
|
67 |
selected_df = pd.DataFrame()
|
68 |
+
st.write('The online tool may be slow, especially while processing multiple SAVs. To address this, please consider using the programmatic version at https://github.com/HUBioDataLab/ASCARIS/')
|
69 |
if submitted:
|
70 |
with st.spinner('In progress...This may take a while...'):
|
71 |
try:
|
|
|
82 |
pass
|
83 |
|
84 |
if selected_df is None:
|
85 |
+
st.success('Feature vector failed. Check the log file.')
|
86 |
|
87 |
else:
|
88 |
if len(selected_df) != 0 :
|
89 |
st.write(selected_df)
|
90 |
+
st.success('Feature vector is successfully created.')
|
91 |
csv = convert_df(selected_df)
|
92 |
|
93 |
st.download_button("Press to Download the Feature Vector", csv,f"ASCARIS_SAV_rep_{input_set}.csv","text/csv",key='download-csv')
|
94 |
|
95 |
else:
|
96 |
+
st.success('Feature vector failed. Check the log file.')
|