Spaces:
Running
Running
Commit
Β·
9058c14
1
Parent(s):
092f942
Update ASCARIS.py
Browse files- ASCARIS.py +1 -14
ASCARIS.py
CHANGED
@@ -16,7 +16,7 @@ import gzip
|
|
16 |
showWarningOnDirectExecution = False
|
17 |
|
18 |
def convert_df(df):
|
19 |
-
return df.to_csv(index=False).encode('utf-8')
|
20 |
|
21 |
|
22 |
if 'visibility' not in st.session_state:
|
@@ -35,7 +35,6 @@ st.write('')
|
|
35 |
|
36 |
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 in the protein)',[True, False])
|
40 |
input_data = st.text_input('Enter SAV data points (format: "UniProt/Swiss-Prot human protein accession" β "wild type a.a." β "position on the sequence" β "mutated a.a."). Example: P04217-E-20-A or O43556-I-40-A,P57737-W-372-A')
|
41 |
|
@@ -43,25 +42,13 @@ with st.form('mform', clear_on_submit=False):
|
|
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 P41180-E-604-K, 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 = 1
|
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..')
|
63 |
print('*****************************************')
|
64 |
-
#mode = int(mode)
|
65 |
mode = int(source)
|
66 |
|
67 |
selected_df = pd.DataFrame()
|
|
|
16 |
showWarningOnDirectExecution = False
|
17 |
|
18 |
def convert_df(df):
|
19 |
+
return df.to_csv(index=False, sep= '\t').encode('utf-8')
|
20 |
|
21 |
|
22 |
if 'visibility' not in st.session_state:
|
|
|
35 |
|
36 |
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 |
impute = st.selectbox('Missing value imputation (mostly for the cases where the corresponding annotation does not exist in the protein)',[True, False])
|
39 |
input_data = st.text_input('Enter SAV data points (format: "UniProt/Swiss-Prot human protein accession" β "wild type a.a." β "position on the sequence" β "mutated a.a."). Example: P04217-E-20-A or O43556-I-40-A,P57737-W-372-A')
|
40 |
|
|
|
42 |
|
43 |
parser = argparse.ArgumentParser(description='ASCARIS')
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
input_set = input_data
|
|
|
47 |
impute = impute
|
48 |
submitted = st.form_submit_button(label="Submit", help=None, on_click=None, args=None, kwargs=None, type="secondary", disabled=False, use_container_width=False)
|
49 |
print('*****************************************')
|
50 |
print('Feature vector generation is in progress. \nPlease check log file for updates..')
|
51 |
print('*****************************************')
|
|
|
52 |
mode = int(source)
|
53 |
|
54 |
selected_df = pd.DataFrame()
|