Spaces:
Sleeping
Sleeping
Erva Ulusoy
commited on
Commit
·
4c00b99
1
Parent(s):
657176c
update buttons and disclaimers
Browse files- Domain2GO.py +7 -9
Domain2GO.py
CHANGED
@@ -24,15 +24,15 @@ with st.sidebar:
|
|
24 |
def click_button():
|
25 |
st.session_state.example_seq_button = not st.session_state.example_seq_button
|
26 |
|
27 |
-
input_type = st.radio('Select input type', ['Enter sequence', 'Upload FASTA file'])
|
28 |
-
if input_type == 'Enter sequence':
|
29 |
st.button('Use example sequence', on_click=click_button)
|
30 |
if st.session_state.example_seq_button:
|
31 |
-
st.session_state['sequence'] = st.text_area('Enter protein sequence in FASTA format
|
32 |
value='>sp|O18783|PLMN_NOTEU\n'
|
33 |
'MEYGKVIFLFLLFLKSGQGESLENYIKTEGASLSNSQKKQFVASSTEECEALCEKETEFVCRSFEHYNKEQKCVIMSENSKTSSVERKRDVVLFEKRIYLSDCKSGNGRNYRGTLSKTKSGITCQKWSDLSPHVPNYAPSKYPDAGLEKNYCRNPDDDVKGPWCYTTNPDIRYEYCDVPECEDECMHCSGENYRGTISKTESGIECQPWDSQEPHSHEYIPSKFPSKDLKENYCRNPDGEPRPWCFTSNPEKRWEFCNIPRCSSPPPPPGPMLQCLKGRGENYRGKIAVTKSGHTCQRWNKQTPHKHNRTPENFPCRGLDENYCRNPDGELEPWCYTTNPDVRQEYCAIPSCGTSSPHTDRVEQSPVIQECYEGKGENYRGTTSTTISGKKCQAWSSMTPHQHKKTPDNFPNADLIRNYCRNPDGDKSPWCYTMDPTVRWEFCNLEKCSGTGSTVLNAQTTRVPSVDTTSHPESDCMYGSGKDYRGKRSTTVTGTLCQAWTAQEPHRHTIFTPDTYPRAGLEENYCRNPDGDPNGPWCYTTNPKKLFDYCDIPQCVSPSSFDCGKPRVEPQKCPGRIVGGCYAQPHSWPWQISLRTRFGEHFCGGTLIAPQWVLTAAHCLERSQWPGAYKVILGLHREVNPESYSQEIGVSRLFKGPLAADIALLKLNRPAAINDKVIPACLPSQDFMVPDRTLCHVTGWGDTQGTSPRGLLKQASLPVIDNRVCNRHEYLNGRVKSTELCAGHLVGRGDSCQGDSGGPLICFEDDKYVLQGVTSWGLGCARPNKPGVYVRVSRYISWIEDVMKNN')
|
34 |
else:
|
35 |
-
st.session_state['sequence'] = st.text_area('Enter protein sequence in FASTA format
|
36 |
st.session_state['name'] = st.session_state['sequence'].split('\n')[0].strip('>')
|
37 |
else:
|
38 |
protein_input = st.file_uploader('Choose file')
|
@@ -42,10 +42,7 @@ with st.sidebar:
|
|
42 |
for fasta in fasta_sequences:
|
43 |
st.session_state['name'], st.session_state['sequence'] = fasta.id, str(fasta.seq)
|
44 |
|
45 |
-
st.session_state['email'] = st.text_input('Enter your email for InterProScan query
|
46 |
-
st.markdown("""
|
47 |
-
<p style="color:#000000;font-size:12px;">*InterProScan requests your email to notify you when your job is done. Your email will not be used for any other purpose.</p>
|
48 |
-
""", unsafe_allow_html=True)
|
49 |
|
50 |
# prevent user from clicking submit button if email or sequence is empty
|
51 |
submitted = False
|
@@ -66,7 +63,8 @@ with st.sidebar:
|
|
66 |
c.markdown(
|
67 |
"""
|
68 |
<div style="padding:5px">
|
69 |
-
<p style="color:#000000;font-size:12px;"
|
|
|
70 |
</div>
|
71 |
""", unsafe_allow_html=True)
|
72 |
|
|
|
24 |
def click_button():
|
25 |
st.session_state.example_seq_button = not st.session_state.example_seq_button
|
26 |
|
27 |
+
input_type = st.radio('Select input type', ['Enter a sequence', 'Upload a FASTA file'])
|
28 |
+
if input_type == 'Enter a sequence':
|
29 |
st.button('Use example sequence', on_click=click_button)
|
30 |
if st.session_state.example_seq_button:
|
31 |
+
st.session_state['sequence'] = st.text_area('Enter a protein sequence in FASTA format*',
|
32 |
value='>sp|O18783|PLMN_NOTEU\n'
|
33 |
'MEYGKVIFLFLLFLKSGQGESLENYIKTEGASLSNSQKKQFVASSTEECEALCEKETEFVCRSFEHYNKEQKCVIMSENSKTSSVERKRDVVLFEKRIYLSDCKSGNGRNYRGTLSKTKSGITCQKWSDLSPHVPNYAPSKYPDAGLEKNYCRNPDDDVKGPWCYTTNPDIRYEYCDVPECEDECMHCSGENYRGTISKTESGIECQPWDSQEPHSHEYIPSKFPSKDLKENYCRNPDGEPRPWCFTSNPEKRWEFCNIPRCSSPPPPPGPMLQCLKGRGENYRGKIAVTKSGHTCQRWNKQTPHKHNRTPENFPCRGLDENYCRNPDGELEPWCYTTNPDVRQEYCAIPSCGTSSPHTDRVEQSPVIQECYEGKGENYRGTTSTTISGKKCQAWSSMTPHQHKKTPDNFPNADLIRNYCRNPDGDKSPWCYTMDPTVRWEFCNLEKCSGTGSTVLNAQTTRVPSVDTTSHPESDCMYGSGKDYRGKRSTTVTGTLCQAWTAQEPHRHTIFTPDTYPRAGLEENYCRNPDGDPNGPWCYTTNPKKLFDYCDIPQCVSPSSFDCGKPRVEPQKCPGRIVGGCYAQPHSWPWQISLRTRFGEHFCGGTLIAPQWVLTAAHCLERSQWPGAYKVILGLHREVNPESYSQEIGVSRLFKGPLAADIALLKLNRPAAINDKVIPACLPSQDFMVPDRTLCHVTGWGDTQGTSPRGLLKQASLPVIDNRVCNRHEYLNGRVKSTELCAGHLVGRGDSCQGDSGGPLICFEDDKYVLQGVTSWGLGCARPNKPGVYVRVSRYISWIEDVMKNN')
|
34 |
else:
|
35 |
+
st.session_state['sequence'] = st.text_area('Enter a protein sequence in FASTA format*')
|
36 |
st.session_state['name'] = st.session_state['sequence'].split('\n')[0].strip('>')
|
37 |
else:
|
38 |
protein_input = st.file_uploader('Choose file')
|
|
|
42 |
for fasta in fasta_sequences:
|
43 |
st.session_state['name'], st.session_state['sequence'] = fasta.id, str(fasta.seq)
|
44 |
|
45 |
+
st.session_state['email'] = st.text_input('Enter your email for InterProScan query**')
|
|
|
|
|
|
|
46 |
|
47 |
# prevent user from clicking submit button if email or sequence is empty
|
48 |
submitted = False
|
|
|
63 |
c.markdown(
|
64 |
"""
|
65 |
<div style="padding:5px">
|
66 |
+
<p style="color:#000000;font-size:12px;">*Disclaimer: This program is designed to generate predictions for a single protein due to the extended runtime of InterProScan. If you need predictions for multiple UniProtKB/Swiss-Prot proteins, we recommend utilizing our comprehensive protein function prediction dataset available in our <a href="https://github.com/HUBioDataLab/Domain2GO">Github repository</a>.</p>
|
67 |
+
<p style="color:#000000;font-size:12px;">**InterProScan requests your email to notify you when your job is done. Your email will not be used for any other purpose.</p>
|
68 |
</div>
|
69 |
""", unsafe_allow_html=True)
|
70 |
|