Implementation of the PROTECT method
Project description
PROTECT: PRoxy-based individual Treatment EffeCT modeling in cancer
Official implementation of PROTECT
installation
Development version: clone this repository, run
pip install -e .
To be able to run the tutorial notebook,
also install the dev dependencies:
pip install -e .[dev]
Usage
For applying PROTECT to your own data, see the notebook tutorials/inference_demo.ipynb
To run this, you'll need to install the dev dependencies
You'll need to specify these files (as seen in the tutorial directory)
model.pyyou're own bespoke PROTECT model variantmetadata.yamlsome background information on the model and potential flags to control the model computationpriors.csva csv file that specifies the priors for the model (can also be provided in other formats, see protect/models.py for details)
data formatting
Obligatory variables are
txa binary treatment indicatortime_cens: a floating point variable withtime_cens = timefor patients who had the event, andtime_cens = -timefor patients who were censored, where:
time_cens = (2*event - 1) * time
You can create this from a time and event variable using protect.utils.time_event_to_time_cens(time,event)
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file protectcode-0.1.0.tar.gz.
File metadata
- Download URL: protectcode-0.1.0.tar.gz
- Upload date:
- Size: 62.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8afd1a9329196af1a38ff57eb866eb4dd1437e479d6b04927785a74919302a2a
|
|
| MD5 |
3bf0f22003a3f0bb8f23033ae88501db
|
|
| BLAKE2b-256 |
b68709d49c5332513447e447568d6930296ec35a795fb42656be514e02c21b70
|
File details
Details for the file protectcode-0.1.0-py3-none-any.whl.
File metadata
- Download URL: protectcode-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65ae00cafc876ab4d5f2d44645b8d429f35c82172446b2f6b673bfb413ed41dc
|
|
| MD5 |
595061731692002f247480fca63c0fc9
|
|
| BLAKE2b-256 |
799e146f7f184428ab86defb64236e498231cbdd5980e91bcac19852d83847e7
|