GENOMICS-CDDBRG's picture
Update app.py
644546d verified
Raw History Blame Contribute Delete
1.63 kB
"""
Woloji Genomic Suite v1.0
A single Streamlit deployment that bundles five sequence analysis tools behind
one sidebar. Each tool keeps its own logic in tools/<name>.py and exposes a
render() function. This file only handles page configuration and navigation.
"""
import streamlit as st
st.set_page_config(
page_title="Woloji Genomic Suite v1.0",
page_icon=":dna:",
layout="wide",
initial_sidebar_state="expanded",
)
import phyloforge
import crispr_cas
import mge_plasmid
import primer_design
import geneclean_blast
TOOLS = {
"PhyloForge (phylogenetic trees)": phyloforge,
"CRISPR-Cas Detector": crispr_cas,
"MGE / Plasmid Detector": mge_plasmid,
"Primer Design Tool": primer_design,
"GeneClean-BLAST": geneclean_blast,
}
if "active_tool" not in st.session_state:
st.session_state["active_tool"] = list(TOOLS.keys())[0]
with st.sidebar:
st.title("Woloji Genomic Suite v1.0")
st.caption("Sequence analysis tools for the lab, in one place.")
st.markdown("---")
for name in TOOLS:
is_active = st.session_state["active_tool"] == name
if st.button(
name,
use_container_width=True,
type="primary" if is_active else "secondary",
key=f"nav_{name}",
):
st.session_state["active_tool"] = name
st.markdown("---")
st.caption(
"Some tools call external programs (MAFFT, IQ-TREE, BLAST+, Platon, "
"IntegronFinder). If a step reports the tool as missing, it needs to be "
"installed in this Space's runtime."
)
TOOLS[st.session_state["active_tool"]].render()