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)
Metadata
Release files for protectcode 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| protectcode-0.1.0.tar.gz | 62.9 kB | Without provenance | Details for protectcode-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| protectcode-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for protectcode-0.1.0-py3-none-any.whl |
Total release size: 96.5 kB
Release files / protectcode-0.1.0.tar.gz
| Download URL | protectcode-0.1.0.tar.gz |
|---|---|
| Size | 62.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8afd1a9329196af1a38ff57eb866eb4dd1437e479d6b04927785a74919302a2a
|
|
BLAKE2b-256 checksum How to use checksums |
b68709d49c5332513447e447568d6930296ec35a795fb42656be514e02c21b70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.8
|
Release files / protectcode-0.1.0-py3-none-any.whl
| Download URL | protectcode-0.1.0-py3-none-any.whl |
|---|---|
| Size | 33.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65ae00cafc876ab4d5f2d44645b8d429f35c82172446b2f6b673bfb413ed41dc
|
|
BLAKE2b-256 checksum How to use checksums |
799e146f7f184428ab86defb64236e498231cbdd5980e91bcac19852d83847e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.8
|
Security for protectcode 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.