Skip to content

Refactor/streamlit - #19

Merged
BehRoooz merged 6 commits into
mainfrom
refactor/streamlit
Jul 29, 2026
Merged

Refactor/streamlit#19
BehRoooz merged 6 commits into
mainfrom
refactor/streamlit

Conversation

@BehRoooz

Copy link
Copy Markdown
Owner

Summary

Refactors the ProSeqGO Streamlit UI into a scientist-facing predict-only interface and enriches prediction results with GO term names, OBO namespaces, and definitions — without changing embedding or GO prediction APIs.

Streamlit UX

  • Removes ops/platform content (MLflow / Prometheus / Grafana links, workflow diagram) so users land directly on prediction.
  • Updates product description copy for ProSeqGO.
  • Keeps sequence and FASTA input modes with top_k control.

Gateway configuration (env-injected)

  • Removes gateway URL, username, password, and TLS fields from the predict form.
  • Loads gateway settings from service environment via load_gateway_config():
    • GATEWAY_BASE_URL
    • GATEWAY_USER
    • GATEWAY_USER_PASSWORD
    • optional GATEWAY_VERIFY_TLS
  • Sets GATEWAY_VERIFY_TLS=false for streamlit-ui in Compose (internal http://nginx).

GO term enrichment

  • Adds scripts/build_go_term_metadata.py to build a vocabulary lookup from:
    • outputs/label_matrix_top500/term_names.npy
    • go-basic.obo
  • Commits services/streamlit-ui/metadata/go_term_metadata.csv (~500 rows).
  • Adds services/streamlit-ui/go_metadata.py with cached CSV load + left-join helpers.
  • Enriches UI tables with:
    • GO Term
    • GO Name
    • Namespace (OBO: biological_process, molecular_function, cellular_component)
    • Definition
    • Score
  • Falls back gracefully to GO IDs only if metadata is missing/invalid.

BehRoooz added 6 commits July 29, 2026 12:49
Remove MLflow/Prometheus/Grafana links and the Graphviz architecture
diagram so scientists land directly on sequence/FASTA prediction.
Update the ProSeqGO description copy to match the product-facing UI.
…on, preprocess/split/embed pipeline, sequence normalization, data contracts, retention, reproducibility checklist
@BehRoooz
BehRoooz merged commit 0675894 into main Jul 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant