Skip to main content

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.py you're own bespoke PROTECT model variant
  • metadata.yaml some background information on the model and potential flags to control the model computation
  • priors.csv a 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

  • tx a binary treatment indicator
  • time_cens: a floating point variable with time_cens = time for patients who had the event, and time_cens = -time for 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


Download files

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

Source Distribution

protectcode-0.1.0.tar.gz (62.9 kB view details)

Uploaded Source

Built Distribution

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

protectcode-0.1.0-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

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

Hashes for protectcode-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8afd1a9329196af1a38ff57eb866eb4dd1437e479d6b04927785a74919302a2a
MD5 3bf0f22003a3f0bb8f23033ae88501db
BLAKE2b-256 b68709d49c5332513447e447568d6930296ec35a795fb42656be514e02c21b70

See more details on using hashes here.

File details

Details for the file protectcode-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for protectcode-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65ae00cafc876ab4d5f2d44645b8d429f35c82172446b2f6b673bfb413ed41dc
MD5 595061731692002f247480fca63c0fc9
BLAKE2b-256 799e146f7f184428ab86defb64236e498231cbdd5980e91bcac19852d83847e7

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