Spaces:
Paused
Paused
update documentation to reflect ec predictions
Browse filesFiles changed (3)
- .gitignore+2-1
- pages/About.py+2-1
- pages/User_Guide.py+13-6
5 unmodified lines6789101112135 unmodified lines.DS_Store*.code-workspace# Large data downloaded or generated at runtime (the KG is fetched from the HF dataset by load_kg)data/prothgt-kg.ptdata/prothgt-kg.jsondata/prothgt-kg.json.gzdata/name_info.json5 unmodified lines678910111213145 unmodified lines.DS_Store*.code-workspace# Large data downloaded or generated at runtime (the KGs are fetched from the HF dataset by load_kg / load_ec_kg)data/prothgt-kg.ptdata/prothgt-ec-kg.ptdata/prothgt-kg.jsondata/prothgt-kg.json.gzdata/name_info.json
26 unmodified lines2728293031323315 unmodified lines49505152535426 unmodified lines"""ProtHGT is a **heterogeneous graph transformer-based model** for automated protein function prediction. It integrates embeddings from **protein language models (PLMs)** with **a large-scale biological knowledge graph** built from 14 data sources, covering 9 biological entity types (proteins, domains, GO terms, pathways, diseases, drugs, and more) and 17 relationship types.The model jointly learns from sequence-derived PLM embeddings and the multi-relational structure of the graph. Through its **graph attention mechanisms**, ProtHGT learns to prioritize the most influential connections in the knowledge graph, capturing the characteristics of each node and edge type and their specific contributions to protein function. ProtHGT is developed primarily for **Gene Ontology (GO) term prediction**, with dedicated models for all three sub-ontologies. To test whether the same architecture extends to a functional vocabulary with a different structure, it was additionally applied to **EC number prediction**, using a task-specific graph configuration derived from the same knowledge graph. This web application currently provides GO term predictions.ProtHGT outperforms state-of-the-art methods on the [DeepHGAT](https://ieeexplore.ieee.org/document/10423114/) and [PROBE](https://huggingface.co/spaces/HUBioDataLab/PROBE) benchmarks for GO term prediction, and ablation analyses highlight the **critical role of heterogeneous data integration** in its accuracy. Compared with the original PLM features, ProtHGT-refined embeddings show improved biological coherence. The learned representations and the architecture also generalize beyond GO term prediction: to semantic similarity inference and drug target protein family classification on PROBE, and to EC number prediction, where ProtHGT is competitive with dedicated enzyme function prediction methods on the [CLEAN](https://doi.org/10.1126/science.adf2465) benchmark. Finally, a use case study supports the biological validity of its predictions and shows how researchers can **trace predictions back to their underlying connections** in the graph, making it possible to explore new functional links, validate known annotations, and generate testable biological hypotheses.15 unmodified lines**Recently added**- **Knowledge graph visualization for interpretability.** Explore the biological relationships behind ProtHGT's predictions interactively. For each query protein, you can inspect protein interactions, GO annotations, domains, pathways, and other key connections in a structured graphical format. Navigate to the **Knowledge graph** tab after generating predictions to try it out.Stay tuned for updates and future publications!26 unmodified lines2728293031323315 unmodified lines4950515253545526 unmodified lines"""ProtHGT is a **heterogeneous graph transformer-based model** for automated protein function prediction. It integrates embeddings from **protein language models (PLMs)** with **a large-scale biological knowledge graph** built from 14 data sources, covering 9 biological entity types (proteins, domains, GO terms, pathways, diseases, drugs, and more) and 17 relationship types.The model jointly learns from sequence-derived PLM embeddings and the multi-relational structure of the graph. Through its **graph attention mechanisms**, ProtHGT learns to prioritize the most influential connections in the knowledge graph, capturing the characteristics of each node and edge type and their specific contributions to protein function. ProtHGT is developed primarily for **Gene Ontology (GO) term prediction**, with dedicated models for all three sub-ontologies. To test whether the same architecture extends to a functional vocabulary with a different structure, it was additionally applied to **EC number prediction**, using a task-specific graph configuration derived from the same knowledge graph. This web application provides **both GO term and EC number predictions**.ProtHGT outperforms state-of-the-art methods on the [DeepHGAT](https://ieeexplore.ieee.org/document/10423114/) and [PROBE](https://huggingface.co/spaces/HUBioDataLab/PROBE) benchmarks for GO term prediction, and ablation analyses highlight the **critical role of heterogeneous data integration** in its accuracy. Compared with the original PLM features, ProtHGT-refined embeddings show improved biological coherence. The learned representations and the architecture also generalize beyond GO term prediction: to semantic similarity inference and drug target protein family classification on PROBE, and to EC number prediction, where ProtHGT is competitive with dedicated enzyme function prediction methods on the [CLEAN](https://doi.org/10.1126/science.adf2465) benchmark. Finally, a use case study supports the biological validity of its predictions and shows how researchers can **trace predictions back to their underlying connections** in the graph, making it possible to explore new functional links, validate known annotations, and generate testable biological hypotheses.15 unmodified lines**Recently added**- **EC number prediction.** In addition to GO terms, ProtHGT now predicts **Enzyme Commission (EC) numbers** for enzymes across the four hierarchy levels (L1βL4). Predictions are generated as a consistent top-down chain and linked to the ExPASy ENZYME database. Select **Enzyme Commission (EC) number** in step 2 to use it.- **Knowledge graph visualization for interpretability.** Explore the biological relationships behind ProtHGT's predictions interactively. For each query protein, you can inspect protein interactions, GO annotations, domains, pathways, and other key connections in a structured graphical format. Navigate to the **Knowledge graph** tab after generating predictions to try it out.Stay tuned for updates and future publications!
6 unmodified lines789101112131411 unmodified lines2627282930313233343512 unmodified lines48495051525354556 unmodified linesst.title("User guide")st.markdown("""ProtHGT predicts **Gene Ontology (GO) terms** for proteins using a heterogeneous graph transformertrained on a biological knowledge graph. A prediction takes three steps.""")st.subheader("1. Add proteins")11 unmodified linesst.subheader("2. Choose what to predict")st.markdown("""- **Function categories** β any of *Molecular function* (biochemical activity), *Biological process*(pathways and programs) and *Cellular component* (location in the cell).- **Strictness** β sets the minimum score a GO term needs to be returned. Each preset keeps theterms whose predicted score falls in the range below:""")_presets = list(STRICTNESS.items())12 unmodified linesst.subheader("3. Review results")st.markdown("""- **Predictions** β a sortable table with links to UniProt and QuickGO. Filter by protein, aspect,GO ID / term text and minimum score, then download the filtered table as CSV.- **Knowledge graph** β for runs of up to 10 proteins, view the subgraph around a protein (with optionalsecond-degree edges) and download the shown edges as JSON.6 unmodified lines789101112131411 unmodified lines26272829303132333435363712 unmodified lines505152535455565758596061626 unmodified linesst.title("User guide")st.markdown("""ProtHGT predicts **Gene Ontology (GO) terms** and **Enzyme Commission (EC) numbers** for proteins usinga heterogeneous graph transformer trained on a biological knowledge graph. A prediction takes three steps.""")st.subheader("1. Add proteins")11 unmodified linesst.subheader("2. Choose what to predict")st.markdown("""- **Gene Ontology terms** β any of *Molecular function* (biochemical activity), *Biological process*(pathways and programs) and *Cellular component* (location in the cell).- **Enzyme Commission (EC) number** β predict EC numbers for enzymes across the four hierarchy levels(L1 class β L4 full number). You can select GO categories, EC numbers, or both.- **Strictness** β sets the minimum score a prediction needs to be returned (applies to both GO and EC).Each preset keeps the predictions whose score falls in the range below:""")_presets = list(STRICTNESS.items())12 unmodified linesst.subheader("3. Review results")st.markdown("""Each selected prediction type gets its own tab.- **GO terms** β a sortable table with links to UniProt and QuickGO. Filter by protein, aspect,GO ID / term text and minimum score, then download the filtered table as CSV.- **EC numbers** β EC predictions as a consistent top-down chain (L1 class β L4 full number), with theenzyme class/name and links to the ExPASy ENZYME database. A protein can stop at an intermediate levelwhen no deeper level passes the threshold, and non-enzymes return no EC number. Filter by protein,level, EC text and minimum score, then download as CSV.- **Knowledge graph** β for runs of up to 10 proteins, view the subgraph around a protein (with optionalsecond-degree edges) and download the shown edges as JSON.
.gitignore+2-1
pages/About.py+2-1
pages/User_Guide.py+13-6