Erva Ulusoy commited on
Commit
edf98f8
1 Parent(s): 033d566

add navbar to about and user guide pages

Browse files
Files changed (2) hide show
  1. pages/About.py +15 -3
  2. pages/User_Guide.py +13 -4
pages/About.py CHANGED
@@ -1,6 +1,13 @@
1
  import streamlit as st
2
 
3
 
 
 
 
 
 
 
 
4
  st.markdown('''
5
  # Mutual Annotation-Based Prediction of Protein Domain Functions with Domain2GO
6
  ''')
@@ -14,12 +21,15 @@ st.markdown(
14
 
15
  st.markdown('<p style="font-size:18px; font-weight:bold">Developers: Erva Ulusoy, Tunca Dogan</p>', unsafe_allow_html=True)
16
 
17
- st.markdown(
18
- '<p style="font-size:25px; font-weight:bold">How it works</p>', unsafe_allow_html=True)
 
 
 
19
 
20
  st.markdown(
21
  """
22
- Domain2GO mappings are a set of association predictions between protein domains and Gene Ontology (GO) terms. This tool provides a user-friendly interface to predict protein functions by propagating Domain2GO mappings to query proteins that are annotated with those domains. This operation is shown in panel (F) of the figure below.
23
 
24
  Domain2GO is developed with the aim of identifying unknown protein functions by associating domains with Gene Ontology terms, thus defining the problem as domain function prediction. Domain2GO mappings are generated using the existing domain and GO annotation data. In order to obtain highly reliable associations, we employed statistical resampling and analyzed the co-occurrence patterns of domains and GO terms on the same proteins.
25
 
@@ -33,6 +43,8 @@ Overall workflow of Domain2GO is shown below.
33
 
34
  """)
35
 
 
 
36
  st.image('figures/full_methodology.png', width=700)
37
 
38
  st.markdown(
 
1
  import streamlit as st
2
 
3
 
4
+ st.sidebar.markdown('''
5
+ # Sections
6
+ - [How it works](#how-it-works)
7
+ - [Schematic overview of Domain2GO](#schematic-overview)
8
+ ''', unsafe_allow_html=True)
9
+
10
+
11
  st.markdown('''
12
  # Mutual Annotation-Based Prediction of Protein Domain Functions with Domain2GO
13
  ''')
 
21
 
22
  st.markdown('<p style="font-size:18px; font-weight:bold">Developers: Erva Ulusoy, Tunca Dogan</p>', unsafe_allow_html=True)
23
 
24
+
25
+ st.header('How it works', anchor='how-it-works')
26
+
27
+ # st.markdown(
28
+ # '<p style="font-size:25px; font-weight:bold">How it works</p>', unsafe_allow_html=True)
29
 
30
  st.markdown(
31
  """
32
+ Domain2GO mappings are a set of association predictions between protein domains and Gene Ontology (GO) terms. This tool provides a user-friendly interface to predict protein functions by propagating Domain2GO mappings to query proteins that are annotated with those domains. This operation is shown in [panel (F) of the figure below](#schematic-overview).
33
 
34
  Domain2GO is developed with the aim of identifying unknown protein functions by associating domains with Gene Ontology terms, thus defining the problem as domain function prediction. Domain2GO mappings are generated using the existing domain and GO annotation data. In order to obtain highly reliable associations, we employed statistical resampling and analyzed the co-occurrence patterns of domains and GO terms on the same proteins.
35
 
 
43
 
44
  """)
45
 
46
+
47
+ st.header('Schematic overview of Domain2GO', anchor='schematic-overview')
48
  st.image('figures/full_methodology.png', width=700)
49
 
50
  st.markdown(
pages/User_Guide.py CHANGED
@@ -1,13 +1,21 @@
1
  import streamlit as st
2
 
 
 
 
 
 
 
3
 
4
  st.markdown('''
5
  # Domain2GO User Guide
6
  ''')
7
 
8
- # st.markdown('<p style="font-size:18px; font-weight:bold"></p>', unsafe_allow_html=True)
9
 
10
- st.markdown('<p style="font-size:25px; font-weight:bold">How to use</p>', unsafe_allow_html=True)
 
 
 
11
  st.markdown('<p style="font-size:20px; font-weight:bold">1. Submit your protein sequence</p>', unsafe_allow_html=True)
12
 
13
 
@@ -65,8 +73,9 @@ st.markdown(
65
  You can download the results as a CSV file by clicking the "Download function predictions as CSV" button.
66
  ''')
67
 
68
- # write another section for the warning messages that can be displayed on the main page
69
- st.markdown('<p style="font-size:20px; font-weight:bold">4. Troubleshooting</p>', unsafe_allow_html=True)
 
70
 
71
  st.markdown(
72
  '''
 
1
  import streamlit as st
2
 
3
+ st.sidebar.markdown('''
4
+ # Sections
5
+ - [How to use](#how-to-use)
6
+ - [Troubleshooting](#troubleshooting)
7
+ ''', unsafe_allow_html=True)
8
+
9
 
10
  st.markdown('''
11
  # Domain2GO User Guide
12
  ''')
13
 
 
14
 
15
+ # st.markdown('<p style="font-size:25px; font-weight:bold">How to use</p>', unsafe_allow_html=True)
16
+
17
+ st.header('How to use', anchor='how-to-use')
18
+
19
  st.markdown('<p style="font-size:20px; font-weight:bold">1. Submit your protein sequence</p>', unsafe_allow_html=True)
20
 
21
 
 
73
  You can download the results as a CSV file by clicking the "Download function predictions as CSV" button.
74
  ''')
75
 
76
+ # st.markdown('<p style="font-size:20px; font-weight:bold">4. Troubleshooting</p>', unsafe_allow_html=True)
77
+ st.header('Troubleshooting', anchor='troubleshooting')
78
+
79
 
80
  st.markdown(
81
  '''