Skip to main content

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)

Metadata

Release files for causalprotect 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for causalprotect 0.1.1
File Size Uploaded Provenance Actions
causalprotect-0.1.1.tar.gz 62.8 kB Without provenance Details for causalprotect-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for causalprotect 0.1.1
File Interpreter ABI Platform Actions
causalprotect-0.1.1-py3-none-any.whl Python 3 none any Details for causalprotect-0.1.1-py3-none-any.whl

Total release size: 96.6 kB

Release files / causalprotect-0.1.1.tar.gz

Download URL causalprotect-0.1.1.tar.gz
Size 62.8 kB
Tags Source
SHA-256 checksum
How to use checksums
50a6448448207e29df5b9d860c6da3f9e45899010dcb44a622490fc590d4bbce
BLAKE2b-256 checksum
How to use checksums
afc8891927697d76ee3030876c3a65773262d38e0bf4367acc57d7f5b5f22973
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.8

Release files / causalprotect-0.1.1-py3-none-any.whl

Download URL causalprotect-0.1.1-py3-none-any.whl
Size 33.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab6ec2c0e4467e6041dc2a9075937fd6e8241fa16a32d87d7ff0bd13c081f765
BLAKE2b-256 checksum
How to use checksums
02fb703ff18d716ccc9c4a8ff076c28d891b83165a61f71ef975ea4f5a040e60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.8

Security for causalprotect 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page