Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
a3a1660
fix test error
yjzhang Apr 29, 2026
9252844
Merge branch 'NCATSTranslator:main' into main
yjzhang Apr 30, 2026
afffeee
adding scoring to pathfinder output
yjzhang Apr 30, 2026
43df311
add nodes to TCT_pathfinder
yjzhang May 1, 2026
384c56a
start on neighborhood finder
yjzhang May 1, 2026
d712fe3
neighborhood finder - new output type
yjzhang May 1, 2026
3b097a9
removed extraneous function
yjzhang May 1, 2026
2ffe87d
consolidated some duplicate functions
yjzhang May 1, 2026
e6ff218
Merge branch 'NCATSTranslator:main' into main
yjzhang May 1, 2026
2b8d4dd
renamed file
yjzhang May 7, 2026
85e0fa3
Merge branch 'NCATSTranslator:main' into main
yjzhang May 14, 2026
83261b0
add attribute constraints to translator_query.build_query_json
yjzhang May 18, 2026
856fdb1
merged
yjzhang May 18, 2026
031bd2f
Merge branch 'NCATSTranslator:main' into main
yjzhang May 19, 2026
f135e79
testing queries with constraints
yjzhang May 21, 2026
f1de54a
notebook for queries with constraints
yjzhang May 22, 2026
c188e40
neighborhood finder with constraints
yjzhang May 23, 2026
cff0467
update docs to include neighborhood/pathfinder
yjzhang May 28, 2026
0c00041
notebook
yjzhang May 28, 2026
4a87c87
queries with constraints, updating docs
yjzhang May 29, 2026
715ab9f
Merge branch 'NCATSTranslator:main' into main
yjzhang Jun 1, 2026
1c4727f
fixed some potential bugs with neighborhood finder
yjzhang Jun 2, 2026
30ab2f4
Merge branch 'main' of https://github.com/yjzhang/Translator_componen…
yjzhang Jun 2, 2026
471c8a0
working on updating the metakg query...
yjzhang Jun 2, 2026
ce5e739
working on updating the metakg query...
yjzhang Jun 2, 2026
33114e6
add new metakg api url
yjzhang Jun 2, 2026
f8ea041
metakg stuff
yjzhang Jun 2, 2026
3cb26e8
using new metaKG URL
yjzhang Jun 3, 2026
3be3ad1
remove json files from codespell checks
yjzhang Jun 3, 2026
eac06e5
merged
yjzhang Jun 4, 2026
7f2ca92
merged
yjzhang Jun 4, 2026
1cc8355
Merge branch 'NCATSTranslator:main' into main
yjzhang Jun 8, 2026
62f2ba3
Merge branch 'NCATSTranslator:main' into main
yjzhang Jun 11, 2026
eed4b91
neighborhood finder with multiple input nodes
yjzhang Jun 19, 2026
cd3aa5c
Merge branch 'NCATSTranslator:main' into main
yjzhang Jun 25, 2026
f94ac70
Merge branch 'NCATSTranslator:main' into main
yjzhang Jul 7, 2026
65cb46b
Merge branch 'NCATSTranslator:main' into main
yjzhang Jul 7, 2026
7dffc25
Merge branch 'NCATSTranslator:main' into main
yjzhang Jul 7, 2026
18ab874
remove certain requirements
yjzhang Jul 7, 2026
b07e6fb
restore requirements
yjzhang Jul 7, 2026
f65f805
fix typo, fix docs
yjzhang Jul 7, 2026
4526777
fix typos
yjzhang Jul 7, 2026
f1a6632
move ipycytoscape imports to inside function
yjzhang Jul 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To install TCT as a python library:

```bash
pip install TCT
# TCT is in development, to get the most recent update, user can install it throught the github repo
# TCT is in development, to get the most recent update, user can install it through the github repo
```

**This the recommended approach for installation.**
Expand Down Expand Up @@ -90,8 +90,8 @@ API should be developed following the standard from [TRAPI](https://github.com/N
An example notebook for add a user's API can be found [here](https://github.com/NCATSTranslator/Translator_component_toolkit/blob/main/notebooks/Connecting_userAPI.ipynb).<br>
**Note: It does not work if no user' API is established**<br>

### Visulize the results
After each pipleline, it will generate a result file for visualization. A user can use **[the Visualization html](https://github.com/NCATSTranslator/Translator_component_toolkit/blob/main/notebooks/visulize_path_finder_results.html)** file to visulaize the results.
### Visualize the results
After each pipeline, it will generate a result file for visualization. A user can use **[the Visualization html](https://github.com/NCATSTranslator/Translator_component_toolkit/blob/main/notebooks/visulize_path_finder_results.html)** file to visulaize the results.

## Key Translator components
Connecting to key Translator components can be found [here](https://github.com/NCATSTranslator/Translator_component_toolkit/blob/main/TranslatorComponentsIntroduction.md)
Expand Down
5 changes: 4 additions & 1 deletion TCT/TCT.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import ipycytoscape
import networkx as nx
import numpy as np
#import openai
Expand Down Expand Up @@ -1875,6 +1874,7 @@ def plot_graph_by_predicates(for_plot):

]

import ipycytoscape
undirected = ipycytoscape.CytoscapeWidget()
undirected.graph.add_graph_from_networkx(graph)
undirected.set_layout(title='Path', nodeSpacing=80, edgeLengthVal=50, )
Expand Down Expand Up @@ -1923,6 +1923,7 @@ def plot_graph_by_infores(for_plot):

]

import ipycytoscape
undirected = ipycytoscape.CytoscapeWidget()
undirected.graph.add_graph_from_networkx(graph)
undirected.set_layout(title='Path', nodeSpacing=80, edgeLengthVal=50, )
Expand Down Expand Up @@ -1971,6 +1972,7 @@ def plot_graph_by_API(for_plot):

]

import ipycytoscape
undirected = ipycytoscape.CytoscapeWidget()
undirected.graph.add_graph_from_networkx(graph)
undirected.set_layout(title='Path', nodeSpacing=80, edgeLengthVal=50, )
Expand Down Expand Up @@ -2258,6 +2260,7 @@ def visulize_path(input_node1_id, intermediate_node, input_node3_id, result, res
}},

]
import ipycytoscape
pathgraph = ipycytoscape.CytoscapeWidget()
pathgraph.graph.add_graph_from_networkx(graph)
pathgraph.set_layout(title='Path', nodeSpacing=80, edgeLengthVal=50, )
Expand Down
4 changes: 2 additions & 2 deletions TCT/TCT_network_annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def network_annotator(gene_list,

def get_connected_graph(result_parsed, input_identifiers):
"""
This function is used to extract the connected graph from the returned graph based on neiborhood finder from multiple inputs.
This function is used to extract the connected graph from the returned graph based on neighborhood finder from multiple inputs.
It will only include the input nodes and the nodes that are connected to the input nodes with degree greater than 1.


Expand Down Expand Up @@ -269,4 +269,4 @@ def get_connected_graph(result_parsed, input_identifiers):
if key not in selected_nodes:
del result_parsed_copy['knowledge_graph']['nodes'][key]

return result_parsed_copy
return result_parsed_copy
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Welcome to Translator Component Toolkit's documentation!
neighborhood
pathfinder
network_annotator
node_annotator

Indices and tables
==================
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ dependencies = [
'igraph',
'pyvis',
'zstandard',
'copy'
]

[project.scripts]
Expand Down
Loading