Download app.py from GENOMICS-CDDBRG/Phylogenetic_Tree_Builder: direct link, hf CLI and curl.
- Browser
- Download file 1.63 kB
-
https://huggingface.co/spaces/GENOMICS-CDDBRG/Phylogenetic_Tree_Builder/resolve/main/app.py
- Command line
-
hf download hf://spaces/GENOMICS-CDDBRG/Phylogenetic_Tree_Builder/app.py
-
curl -L -o app.py https://huggingface.co/spaces/GENOMICS-CDDBRG/Phylogenetic_Tree_Builder/resolve/main/app.py
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() |