Skip to main content

Translator Component Toolkit

Project description

Introduction

What is TCT?

Translator Component Toolkit is a python library that allowing users to explore and use KGs in the Translator ecosystem. Users can check out the key function documentations here: https://ncatstranslator.github.io/Translator_component_toolkit/

Key features for TCT

Allowing users to select APIs, predicates according to the user's intention.
Parallel and fast querying of the selected APIs.
Providing reproducible results by setting constraints.
Allowing testing whether a user defined API follows a TRAPI standard or not.
Faciliting to explore knowledge graphs from both Translator ecosystem and user defined APIs.
Connecting large language models to convert user's questions into TRAPI queries.

How to use TCT

Install Requirements

To install TCT as a python library:

pip install TCT

This the recommended approach for installation.

Development Installation

The TCT is continuously updated, if you would like to use the latest functions, you can clone this repository and install it in development mode:

Using UV (recommended for development):

git clone https://github.com/NCATSTranslator/Translator_component_toolkit.git
cd Translator_component_toolkit
uv sync

Using pip:

git clone https://github.com/NCATSTranslator/Translator_component_toolkit.git
cd Translator_component_toolkit
pip install -e .

Building and Deployment

Using UV:

  • Build: uv build
  • Install dependencies: uv sync
  • Run in UV environment: uv run python your_script.py

Using pip:

  • Build: python -m build
  • Install dependencies: pip install -e .

Please follow the example notebooks (four utilities) below to explore the Translator APIs.

KG overview

Explore different KGs KG overview

Neighborhood finder

Example notebook for NeighborhoodFinder

Path finder

Example notebook for PathFinder

Network finder

Example notebook for NetworkFinder

Translate users' questions into TRAPI queries

Example notebook for translating users' questions into TRAPI queries can be found here.

Connecting to a user's API

API should be developed following the standard from TRAPI.
An example notebook for add a user's API can be found here.
Warning: It does not work if no user' API is established

Key Translator components

Connecting to key Translator components can be found here

Contributing

TCT is a tool that helps to explore knowledge graphs developed in the Biomedical Data Translator Consortium. Consortium members and external contributors are encouraged to submit issues and pull requests.

Contact info

Guangrong Qin, guangrong.qin@isbscience.org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tct-0.1.6.tar.gz (8.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tct-0.1.6-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

File details

Details for the file tct-0.1.6.tar.gz.

File metadata

  • Download URL: tct-0.1.6.tar.gz
  • Upload date:
  • Size: 8.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for tct-0.1.6.tar.gz
Algorithm Hash digest
SHA256 34a92e223a7c2cf88a37dc4d03ce07415d87a3c954761331feca4de5453bb529
MD5 1c33dc7a3d2a0a72015e381b39d5bb3b
BLAKE2b-256 ad4622ffdc2de592c9dbe061ec79b274df7f36bbce683ee19fe33c2c2ba0f198

See more details on using hashes here.

File details

Details for the file tct-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: tct-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 44.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for tct-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c00c5060d55ac3e17d48a83ae2ba3d161d2a6f2b8fb14af0c327d98ac989b369
MD5 314d0f86af35c4379dfc542884483104
BLAKE2b-256 92ff73043f793b6380cbf207be1f7a79b8252f33285a472282943bea40b90935

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page