File size: 6,198 Bytes
b7d9967 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
import streamlit as st
import pandas as pd
title_app = "ReVa"
title_app2 = "ReVa:AI For Design Vaccine In Silico"
description = """ReVa is an AI-based software for predicting linear epitopes, allergenicity, antigenicity, toxicity,
and conducting physicochemical calculations. It also performs docking (force field calculations and machine learning based) with
human receptors and several simulations for adjuvant addition."""
button1_color = "#018205"
nav_color = "#018205"
jumbotron_color = "#73ff77"
body_color = "#b7f7b9" # Updated body background color
# Mengubah title dan icon web dengan gambar
st.set_page_config(
page_title=title_app,
page_icon="asset/img/kaede_kayano.ico"
)
st.markdown(
"""
<style>
.reportview-container {
background-color: #b7f7b9
}
.sidebar .sidebar-content {
background-color: #b7f7b9
}
</style>
""",
unsafe_allow_html=True
)
# Custom CSS for styling
custom_css = f"""
<style>
body {{
background-color: {body_color};
}}
.navbar {{
display: flex;
justify-content: space-between;
padding: 10px 20px;
background-color: {nav_color};
border-bottom: 1px solid #dee2e6;
width: 100%;
position: sticky;
top: 0;
z-index: 100;
}}
.navbar span {{
margin: 0 10px;
cursor: pointer;
}}
.navbar a {{
color: white;
}}
a {{
text-decoration: none;
}}
.jumbotron {{
background-color: {jumbotron_color};
padding: 20px;
border: 1px solid #f5c6cb;
border-radius: 5px;
}}
.footer {{
text-align: center;
padding: 10px;
left: 0;
bottom: 0;
width: 100%;
background-color: {nav_color};
border-top: 1px solid #dee2e6;
color: white;
}}
</style>
"""
# Inject custom CSS
st.markdown(custom_css, unsafe_allow_html=True)
# Navbar
st.markdown(
f"""
<div class="navbar">
<div>
<a href="#jumbotron"><span style="font-size: 24px; font-weight: bold;">{title_app}</span></a>
</div>
<div>
<a href="#jumbotron"><span>Home</span></a>
<a href="#features"><span>Features</span></a>
<a href="#contact"><span>Contact</span></a>
</div>
</div>
"""
, unsafe_allow_html=True)
# Jumbotron
st.markdown(
f"""
<div id="jumbotron" class="jumbotron">
<h1>{title_app2}</h1>
<p>{description}</p>
<a href='https://science-ai.space/ReVa_app/ReVa.exe' target='_blank' style='text-decoration: none;'>
<button style='padding: 10px 20px; background-color: {button1_color}; color: white; border: none; border-radius: 5px; cursor: pointer;'>
<img src='https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/Windows_logo_-_2012_%28dark_blue%29.svg/2048px-Windows_logo_-_2012_%28dark_blue%29.svg.png' style="width:20px;margin-right:10px">
Windows
</button>
</a>
<a href='https://your_link_here' target='_blank' style='text-decoration: none;'>
<button style='padding: 10px 20px; background-color: {button1_color}; color: white; border: none; border-radius: 5px; cursor: pointer;' disabled>
<img src='https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Tux.svg/800px-Tux.svg.png' style="width:20px;margin-right:10px">
Linux (on going)
</button>
</a>
</div>
"""
, unsafe_allow_html=True)
# Table
st.write("## Features")
st.markdown(
f"""
<ol id="features">
<li>B Cell Or T Cell Linear Epitope Prediction</li>
<li>Allergenicity Prediction</li>
<li>Antigenicity Prediction</li>
<li>Toxicitty Prediction</li>
<li>BLAST Result Epitope</li>
<li>Phsycochemical Calculator</li>
<li>Scoring Using Force Field</li>
<li>Scoring Using Machine Learning(Regression Based)</li>
<li>Van Der Walls Calculator</li>
<li>Adjuvant Addition Simulation And Scoring Using Force Field</li>
<li>Adjuvant Addition Simulation And Scoring Using Machine Learning</li>
</ol>
"""
, unsafe_allow_html=True)
# Contact
st.write("## Contact")
st.markdown(
f"""
<ul id="contact">
<li>
<a href='mailto:herutriana44@gmail.com' target='_blank' style='text-decoration: none;'>
<button style='padding: 10px 20px; background-color: {button1_color}; color: white; border: none; border-radius: 5px; cursor: pointer;'>
<img src='https://mailmeteor.com/logos/assets/PNG/Gmail_Logo_512px.png' style="width:20px;margin-right:10px">
herutriana44@gmail.com
</button>
</a>
</li>
<li>
<a href='https://github.com/Herutriana44/' target='_blank' style='text-decoration: none;'>
<button style='padding: 10px 20px; background-color: {button1_color}; color: white; border: none; border-radius: 5px; cursor: pointer;'>
<img src='https://cdn-icons-png.flaticon.com/512/25/25231.png' style="width:20px;margin-right:10px">
Herutriana44
</button>
</a>
</li>
</ul>
"""
, unsafe_allow_html=True)
# Footer
st.markdown(
f"""
<style>
.footer {{
text-align: center;
padding: 10px;
left: 0;
bottom: 0;
width: 100%;
background-color: {nav_color};
border-top: 1px solid #dee2e6;
color: white;
}}
</style>
"""
, unsafe_allow_html=True)
footer = st.markdown(
f"""
<div class="footer">
<p>© 2023 {title_app}</p>
</div>
"""
, unsafe_allow_html=True)
|