Spaces:
Paused
Paused
update documentation for EC term displays
Browse filesFiles changed (2)
- pages/User_Guide.py+3-2
- ui.py+18-10
51 unmodified lines525354555657585960616251 unmodified linesst.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.51 unmodified lines52535455565758596061626351 unmodified linesst.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. Hover the table and use its toolbar (top-right) to search it,download it as CSV, or open it full-screen.- **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; the table toolbar downloads, searches and expands it as above.- **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.
20 unmodified lines212223242526272829303132333435363738394041424344454647484920 unmodified linespredictions, known annotations, then other node types); second-degree neighbours sit on an outer ringnext to the neighbour they connect to. Choose the protein, then click **Show graph**.- **Top predictions shown** – how many of the highest-scoring GO predictions are shown for eachpredicted GO category (EC predictions always show the full predicted chain).- **Neighbours per edge type** – how many knowledge-graph neighbours are shown for each relationshiptype (domains, interactions, pathways, …), including known GO annotations outside the top predictions.- **Second-degree neighbours** – set above 0 to also expand the neighbours' own connections, excludingedges back to the query protein, up to that many per edge type. Keep it low: the graph quicklybecomes cluttered. Second-degree edges always come from the knowledge graph, never from predictions.Node colours mark the entity type (see the legend at the top of the graph). Predictions are drawn for theselected protein only; select another protein in **Protein** to see its predictions.Edge colours mark the kind of link:- **Purple** – predicted GO term that is also annotated in the knowledge graph. Known annotations thatthe model predicted are purple even when they rank below the top terms set by **Top predictions shown**.- **Red** – novel prediction (one of the top predicted terms) not annotated in the knowledge graph.- **Blue** – GO annotation in the knowledge graph that the model did not predict in this run.- **Grey** – other relationships, such as protein–protein interactions, domains, drug targets, pathways,domain–GO mappings and GO hierarchy links.Interacting with the graph:- **Hover** a node to highlight its connections and show their relationship names, with a card giving thenode's name, type and a link to the source database (UniProt, QuickGO, InterPro, …). Hover an edge to seethe relationship and, for GO terms, the score.- **Drag** nodes to rearrange them; **scroll** to zoom and drag the background to pan.- **Click a legend item** to hide that node type or edge kind; nodes left without visible edges are hiddentoo. Click it again to bring it back.20 unmodified lines2122232425262728293031323334353637383940414243444546474849505152535455565720 unmodified linespredictions, known annotations, then other node types); second-degree neighbours sit on an outer ringnext to the neighbour they connect to. Choose the protein, then click **Show graph**.- **Predictions to show on the graph** – when you ran both GO and EC, toggle whether the graph overlaysGO terms, EC numbers, or both. With only one type run, that type is shown.- **Neighbours per edge type** – how many knowledge-graph neighbours are shown for each relationshiptype (domains, interactions, pathways, …), including known GO annotations outside the top predictions.- **Second-degree neighbours** – set above 0 to also expand the neighbours' own connections, excludingedges back to the query protein, up to that many per edge type. Keep it low: the graph quicklybecomes cluttered. Second-degree edges always come from the knowledge graph, never from predictions;the EC hierarchy is always drawn in full regardless of this setting.- **Top terms shown per category** (GO) – how many of the highest-scoring GO predictions are shown foreach predicted GO category.- **Best prediction per level only** (EC) – show just the single highest-scoring EC at each hierarchylevel (one clean L1→L4 chain) instead of every EC scoring above the threshold.Node colours mark the entity type, including the four EC levels (see the legend at the top of the graph).Predictions are drawn for the selected protein only; select another protein in **Protein** to see itspredictions.Edge colours mark the kind of link:- **Purple** – predicted GO term or EC number that is also recorded in the knowledge graph. Knownannotations the model predicted are purple even when they rank below the top terms set by **Top termsshown per category**.- **Red** – novel prediction not recorded in the knowledge graph.- **Blue** – GO annotation in the knowledge graph that the model did not predict in this run.- **Pink** – EC hierarchy link, connecting a predicted EC number to its parent class up to L1.- **Grey** – other relationships, such as protein–protein interactions, domains, drug targets, pathways,domain–GO mappings and GO hierarchy links.Interacting with the graph:- **Hover** a node to highlight its connections and show their relationship names, with a card giving thenode's name, type and a link to the source database (UniProt, QuickGO, InterPro, ExPASy …). Hover an edgeto see the relationship and, for predictions, the score.- **Drag** nodes to rearrange them; **scroll** to zoom and drag the background to pan.- **Click a legend item** to hide that node type or edge kind; nodes left without visible edges are hiddentoo. Click it again to bring it back.
pages/User_Guide.py+3-2
ui.py+18-10