PyTrial: A Python Package for Artificial Intelligence in Drug Development
Project description
PyTrial
PyTrial: A Python Package for Artificial Intelligence in Drug Development
:star: Features
PyTrial is designed for both ML researchers and medical practioners, which is featured for
-
:key: Off-the-shelf pipelines for various clinical trial tasks proposed in the most recent top-venue papers.
-
:fire: A comprehensive implementation of many AI for drug development tasks:
-
:book: Unified APIs, detailed documentation, and interactive examples with preprocessed demo data for every implemented algorithm.
-
:bulb: Cutting-edge AI4Trial algorithms reproduced from the most recent top-venue papers.
-
:airplane: Scalability to future research and development based on the PyTrial's architecture.
:rocket: Installation
-
Before install PyTrial, we need to install pytorch first. Please refer to install PyTorch for a version that suits your device.
-
Then, it is easy to install PyTrial from github source:
pip install git+https://github.com/RyanWangZf/pytrial.git@main
The package is tested on python==3.7
.
We DO NOT recommend downloading from PyPI temporarily because PyTrial is undergoing development swiftly.
:sunny: Philosophy
In PyTrial, performing a task boils down to three steps: load data -> define model -> fit and predict.
To minimize the efforts learning to use PyTrial, we keep a consistent user interface for all tasks all models, i.e.,
model.fit(train_data, val_data)
model.predict(test_data)
model.save_model(save_dir)
model.load_model(load_dir)
hence all tasks are defined the input and output. All we need to do is to prepare for the input following the protocol.
:book: Documentation
We provide the following tutorials to help users get started with our PyTrial. After go through all these chapters, you will become the expert in AI for clinical trials and are ready to explore the frontier of this field.
The full documentation is at PyTrial-docs.
The principle of PyTrial
- Intro 1: Overview of PyTrial
- Intro 2: PyTrial API & Pipeline
- Intro 3: Basic Patient Data Class
- Intro 4: Basic Trial Data Class
Tutorials for each task
- Task 1: Individual Patient Outcome Prediction
- Task 2: Clinical Trial Site Selection
- Task 3: Trial Outcome Prediction
- Task 4: Patient-Trial Matching
- Task 5: Trial Similarity Search
- Task 6: Trial Patient Records Simulation
Additional utilities
- Misc 1: Load Preprocessed Demo Data
- Misc 2: Prepare Oncology Trial Patient Data
- Misc 3: Pretrained BERT Model
- Misc 4: ICD9 & 10 Knowledge Graph
- Misc 5: Drug Knowledge Graph
:smiley: Citing
If you use PyTrial in a scientific publication, we would appreciate citations to:
@misc{pytrial2023,
title = {PyTrial: A Comprehensive Platform for Artificial Intelligence for Drug Development},
author = {Wang, Zifeng and Theodorou, Brandon and Fu, Tianfan and Xiao, Cao and Sun, Jimeng},
year = {2023},
month = {06},
organization = {SunLab, UIUC},
url = {https://pytrial.readthedocs.io/en/latest/},
}
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
Built Distribution
File details
Details for the file PyTrial-0.0.6.tar.gz
.
File metadata
- Download URL: PyTrial-0.0.6.tar.gz
- Upload date:
- Size: 188.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6806f6966b3f3ed88650a567695e4a161b37a00cea8b5c5ac2010a001d4cf9d5 |
|
MD5 | e469cb6d015ddc036fc10bc8521be321 |
|
BLAKE2b-256 | 4b30040baa2713920cc976400a4256f4d16c3bfafc43a09187c8c02e120bac3a |
File details
Details for the file PyTrial-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: PyTrial-0.0.6-py3-none-any.whl
- Upload date:
- Size: 270.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd767731e1d4f15372a061022872f2b7a24fdf2048c5a057eb5186128746c7f9 |
|
MD5 | d4f9a4e239a3f78228a6987f18145e8a |
|
BLAKE2b-256 | 0b4c801284261955600516cd1e865e83024d1058230bdd6cb70ed455da995208 |