PyTrial


NamePyTrial JSON
Version 0.0.6 PyPI version JSON
download
home_pagehttps://github.com/RyanWangZf/pytrial
SummaryPyTrial: A Python Package for Artificial Intelligence in Drug Development
upload_time2023-06-11 21:42:57
maintainer
docs_urlNone
authorZifeng Wang, Brandon Theodoru, Tianfan Fu, Jimeng Sun
requires_python
license
keywords drug development clinical trial artificial intelligence deep learning machine learning
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h2 align='center'>
    PyTrial
</h2>

<h4 align='center'>
PyTrial: A Python Package for Artificial Intelligence in Drug Development
</h4>

<div align='center'>

[![Doc](https://img.shields.io/badge/Doc-PyTrial-brightgreen)](https://pytrial.readthedocs.io/en/latest/)
[![Tutorial](https://img.shields.io/badge/Tutotrial-PyTrial-brightgreen)](https://pytrial.readthedocs.io/en/latest/tutorial.html)

[![Downloads](https://static.pepy.tech/badge/pytrial)](https://pepy.tech/project/pytrial)
[![License](https://img.shields.io/badge/License-BSD_2--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause)
[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/release/python-370/)
[![Sunlab](https://img.shields.io/badge/About-SunLab%40UIUC-orange)](https://www.sunlab.org/)

</div>

<figure>
<img src = "docs/images/pytrial_tasks.png">
<figcaption align = "center"> 
A series of clinical trial tasks that are supported by PyTrial.
</figcaption>
</figure>



## :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:
	- [Patient outcome prediction](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.indiv_outcome.html).
	- [Trial site selection](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.site_selection.html).
	- [Trial outcome prediction](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.trial_outcome.html).
	- [Patient-trial matching](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.trial_patient_match.html).
	- [Trial similarity search](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.trial_search.html).
	- [Trial data simulation](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.trial_simulation.html).

- :book: Unified APIs, detailed [documentation](https://pytrial.readthedocs.io/en/latest/index.html), and [interactive examples](https://pytrial.readthedocs.io/en/latest/tutorial.html) 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](https://pytorch.org/get-started/locally/) for a version that suits your device.

- Then, it is easy to install PyTrial from github source:

```bash
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.,

```python
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](https://pytrial.readthedocs.io/en/latest/).



### The principle of PyTrial

- [Intro 1: Overview of PyTrial](https://pytrial.readthedocs.io/en/latest/tutorials/overview.html)
- [Intro 2: PyTrial API & Pipeline](https://pytrial.readthedocs.io/en/latest/tutorials/pipeline.html)
- [Intro 3: Basic Patient Data Class](https://pytrial.readthedocs.io/en/latest/tutorials/inputdata.patient.html)
- [Intro 4: Basic Trial Data Class](https://pytrial.readthedocs.io/en/latest/tutorials/inputdata.trial.html)



### Tutorials for each task

- [Task 1: Individual Patient Outcome Prediction](https://pytrial.readthedocs.io/en/latest/tutorials/indiv_outcome/indiv_outcome.html) 
- [Task 2: Clinical Trial Site Selection](https://pytrial.readthedocs.io/en/latest/tutorials/site_selection/site_selection.html)
- [Task 3: Trial Outcome Prediction](https://pytrial.readthedocs.io/en/latest/tutorials/trial_outcome/trial_outcome.html)
- [Task 4: Patient-Trial Matching](https://pytrial.readthedocs.io/en/latest/tutorials/trial_patient_match/trial_patient_match.html)
- [Task 5: Trial Similarity Search](https://pytrial.readthedocs.io/en/latest/tutorials/trial_search/trial_search.html)
- [Task 6: Trial Patient Records Simulation](https://pytrial.readthedocs.io/en/latest/tutorials/trial_simulation/trial_simulation.html)



### Additional utilities

- [Misc 1: Load Preprocessed Demo Data](https://pytrial.readthedocs.io/en/latest/tutorials/load_demo_data.html)
- [Misc 2: Prepare Oncology Trial Patient Data](https://pytrial.readthedocs.io/en/latest/tutorials/trial_patient_data.html)
- [Misc 3: Pretrained BERT Model](https://pytrial.readthedocs.io/en/latest/tutorials/pretrained_bert.html)
- [Misc 4: ICD9 & 10 Knowledge Graph](https://pytrial.readthedocs.io/en/latest/tutorials/icd_kg.html)
- [Misc 5: Drug Knowledge Graph](https://pytrial.readthedocs.io/en/latest/tutorials/drug_kg.html)



## :smiley: Citing 

If you use PyTrial in a scientific publication, we would appreciate citations to:

```bibtex
@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/},
}
```




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/RyanWangZf/pytrial",
    "name": "PyTrial",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "drug development,clinical trial,artificial intelligence,deep learning,machine learning",
    "author": "Zifeng Wang, Brandon Theodoru, Tianfan Fu, Jimeng Sun",
    "author_email": "zifengw2@illinois.edu",
    "download_url": "https://files.pythonhosted.org/packages/4b/30/040baa2713920cc976400a4256f4d16c3bfafc43a09187c8c02e120bac3a/PyTrial-0.0.6.tar.gz",
    "platform": null,
    "description": "<h2 align='center'>\n    PyTrial\n</h2>\n\n<h4 align='center'>\nPyTrial: A Python Package for Artificial Intelligence in Drug Development\n</h4>\n\n<div align='center'>\n\n[![Doc](https://img.shields.io/badge/Doc-PyTrial-brightgreen)](https://pytrial.readthedocs.io/en/latest/)\n[![Tutorial](https://img.shields.io/badge/Tutotrial-PyTrial-brightgreen)](https://pytrial.readthedocs.io/en/latest/tutorial.html)\n\n[![Downloads](https://static.pepy.tech/badge/pytrial)](https://pepy.tech/project/pytrial)\n[![License](https://img.shields.io/badge/License-BSD_2--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause)\n[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/release/python-370/)\n[![Sunlab](https://img.shields.io/badge/About-SunLab%40UIUC-orange)](https://www.sunlab.org/)\n\n</div>\n\n<figure>\n<img src = \"docs/images/pytrial_tasks.png\">\n<figcaption align = \"center\"> \nA series of clinical trial tasks that are supported by PyTrial.\n</figcaption>\n</figure>\n\n\n\n## :star: Features\n\n**PyTrial** is designed for both ML researchers and medical practioners, which is featured for\n\n- :key: Off-the-shelf pipelines for various clinical trial tasks proposed in the most recent top-venue papers.\n\n- :fire: A comprehensive implementation of many AI for drug development tasks:\n\t- [Patient outcome prediction](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.indiv_outcome.html).\n\t- [Trial site selection](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.site_selection.html).\n\t- [Trial outcome prediction](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.trial_outcome.html).\n\t- [Patient-trial matching](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.trial_patient_match.html).\n\t- [Trial similarity search](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.trial_search.html).\n\t- [Trial data simulation](https://pytrial.readthedocs.io/en/latest/pytrial.tasks.trial_simulation.html).\n\n- :book: Unified APIs, detailed [documentation](https://pytrial.readthedocs.io/en/latest/index.html), and [interactive examples](https://pytrial.readthedocs.io/en/latest/tutorial.html) with preprocessed demo data for every implemented algorithm.\n\n- :bulb: Cutting-edge AI4Trial algorithms reproduced from the most recent top-venue papers.\n\n- :airplane: Scalability to future research and development based on the **PyTrial**'s architecture.\n\n\n\n## :rocket: Installation\n\n- Before install PyTrial, we need to install pytorch first. Please refer to [install PyTorch](https://pytorch.org/get-started/locally/) for a version that suits your device.\n\n- Then, it is easy to install PyTrial from github source:\n\n```bash\npip install git+https://github.com/RyanWangZf/pytrial.git@main\n```\n\nThe package is tested on ``python==3.7``.\n\nWe **DO NOT** recommend downloading from PyPI temporarily because PyTrial is undergoing development swiftly.\n\n\n\n## :sunny: Philosophy\n> In PyTrial, performing a task boils down to three steps: load data -> define model -> fit and predict.\n\nTo minimize the efforts learning to use PyTrial, we keep a consistent user interface for all tasks all models, i.e.,\n\n```python\nmodel.fit(train_data, val_data)\n\nmodel.predict(test_data)\n\nmodel.save_model(save_dir)\n\nmodel.load_model(load_dir)\n```\n\nhence all tasks are defined the *input* and *output*. All we need to do is to prepare for the input following the protocol.\n\n\n\n## :book: Documentation\n\n>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.\n\nThe full documentation is at [PyTrial-docs](https://pytrial.readthedocs.io/en/latest/).\n\n\n\n### The principle of PyTrial\n\n- [Intro 1: Overview of PyTrial](https://pytrial.readthedocs.io/en/latest/tutorials/overview.html)\n- [Intro 2: PyTrial API & Pipeline](https://pytrial.readthedocs.io/en/latest/tutorials/pipeline.html)\n- [Intro 3: Basic Patient Data Class](https://pytrial.readthedocs.io/en/latest/tutorials/inputdata.patient.html)\n- [Intro 4: Basic Trial Data Class](https://pytrial.readthedocs.io/en/latest/tutorials/inputdata.trial.html)\n\n\n\n### Tutorials for each task\n\n- [Task 1: Individual Patient Outcome Prediction](https://pytrial.readthedocs.io/en/latest/tutorials/indiv_outcome/indiv_outcome.html) \n- [Task 2: Clinical Trial Site Selection](https://pytrial.readthedocs.io/en/latest/tutorials/site_selection/site_selection.html)\n- [Task 3: Trial Outcome Prediction](https://pytrial.readthedocs.io/en/latest/tutorials/trial_outcome/trial_outcome.html)\n- [Task 4: Patient-Trial Matching](https://pytrial.readthedocs.io/en/latest/tutorials/trial_patient_match/trial_patient_match.html)\n- [Task 5: Trial Similarity Search](https://pytrial.readthedocs.io/en/latest/tutorials/trial_search/trial_search.html)\n- [Task 6: Trial Patient Records Simulation](https://pytrial.readthedocs.io/en/latest/tutorials/trial_simulation/trial_simulation.html)\n\n\n\n### Additional utilities\n\n- [Misc 1: Load Preprocessed Demo Data](https://pytrial.readthedocs.io/en/latest/tutorials/load_demo_data.html)\n- [Misc 2: Prepare Oncology Trial Patient Data](https://pytrial.readthedocs.io/en/latest/tutorials/trial_patient_data.html)\n- [Misc 3: Pretrained BERT Model](https://pytrial.readthedocs.io/en/latest/tutorials/pretrained_bert.html)\n- [Misc 4: ICD9 & 10 Knowledge Graph](https://pytrial.readthedocs.io/en/latest/tutorials/icd_kg.html)\n- [Misc 5: Drug Knowledge Graph](https://pytrial.readthedocs.io/en/latest/tutorials/drug_kg.html)\n\n\n\n## :smiley: Citing \n\nIf you use PyTrial in a scientific publication, we would appreciate citations to:\n\n```bibtex\n@misc{pytrial2023,\n    title = {PyTrial: A Comprehensive Platform for Artificial Intelligence for Drug Development},\n    author = {Wang, Zifeng and Theodorou, Brandon and Fu, Tianfan and Xiao, Cao and Sun, Jimeng},\n    year = {2023},\n    month = {06},\n    organization = {SunLab, UIUC},\n    url = {https://pytrial.readthedocs.io/en/latest/},\n}\n```\n\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "PyTrial: A Python Package for Artificial Intelligence in Drug Development",
    "version": "0.0.6",
    "project_urls": {
        "Homepage": "https://github.com/RyanWangZf/pytrial"
    },
    "split_keywords": [
        "drug development",
        "clinical trial",
        "artificial intelligence",
        "deep learning",
        "machine learning"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0b4c801284261955600516cd1e865e83024d1058230bdd6cb70ed455da995208",
                "md5": "d4f9a4e239a3f78228a6987f18145e8a",
                "sha256": "fd767731e1d4f15372a061022872f2b7a24fdf2048c5a057eb5186128746c7f9"
            },
            "downloads": -1,
            "filename": "PyTrial-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d4f9a4e239a3f78228a6987f18145e8a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 270043,
            "upload_time": "2023-06-11T21:42:55",
            "upload_time_iso_8601": "2023-06-11T21:42:55.681338Z",
            "url": "https://files.pythonhosted.org/packages/0b/4c/801284261955600516cd1e865e83024d1058230bdd6cb70ed455da995208/PyTrial-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4b30040baa2713920cc976400a4256f4d16c3bfafc43a09187c8c02e120bac3a",
                "md5": "e469cb6d015ddc036fc10bc8521be321",
                "sha256": "6806f6966b3f3ed88650a567695e4a161b37a00cea8b5c5ac2010a001d4cf9d5"
            },
            "downloads": -1,
            "filename": "PyTrial-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "e469cb6d015ddc036fc10bc8521be321",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 188862,
            "upload_time": "2023-06-11T21:42:57",
            "upload_time_iso_8601": "2023-06-11T21:42:57.810447Z",
            "url": "https://files.pythonhosted.org/packages/4b/30/040baa2713920cc976400a4256f4d16c3bfafc43a09187c8c02e120bac3a/PyTrial-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-11 21:42:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "RyanWangZf",
    "github_project": "pytrial",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pytrial"
}
        
Elapsed time: 0.21028s