Skip to main content

pheno-utils

pheno-utils is a dynamic Python package developed by Pheno.AI, for handling our medical datasets. It simplifies data loading, enables effective merging, and offers intuitive visualization tools.

Install

pip install pheno_utils

How to use

Examples:

data = generate_synthetic_data(n=1000)
hist_ecdf_plots(data=data, col="val1")

age_refplots = GenderAgeRefPlot(data, "val1")
age_refplots.plot()

Setting Up pheno-utils

To use pheno-utils, you must have a config.json file. This file should be set up according to your filesystem and placed in the ~/.pheno/ directory.

If You’re Working on TRE

For those working in the Trusted Research Environment (TRE), you don’t need to worry about the config.json file. It will be automatically generated for you!

If You’re Working with Phenos’ S3 Bucket

If you’re working with Phenos’ S3 bucket, you’ll need to manually create the config.json file. You can do this by running the following Python script:

python config_setup/create_default_config.py -d s3://datasets_bucket_name

If you are working on local file system

If you are working on local file system, you’ll need to manually create the config.json file and locating it under ~/.pheno/ directory. Please use the config_setup/example_config.json as a template for your config.json file.

Metadata

Release files for pheno-utils 0.4.0

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

Source distribution (sdist)

Source distribution for pheno-utils 0.4.0
File Size Uploaded Provenance Actions
pheno-utils-0.4.0.tar.gz 45.8 kB Without provenance Details for pheno-utils-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pheno-utils 0.4.0
File Interpreter ABI Platform Actions
pheno_utils-0.4.0-py3-none-any.whl Python 3 none any Details for pheno_utils-0.4.0-py3-none-any.whl

Total release size: 98.3 kB

Release files / pheno-utils-0.4.0.tar.gz

Download URL pheno-utils-0.4.0.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
be7a9c606cf7ded56611aed44dfee2f078a1c6794452016ff2e9acd658c8fb39
BLAKE2b-256 checksum
How to use checksums
7b06cfbc77fe02906e5076b4c08c111182f75beaf05da10c32ed9273faebc009
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pheno_utils-0.4.0-py3-none-any.whl

Download URL pheno_utils-0.4.0-py3-none-any.whl
Size 52.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afb6a7ea121e5305cc3bd068f0a998c57994c9f81d58335397fe25723952489a
BLAKE2b-256 checksum
How to use checksums
5700e7867421e0177c3cc72beacd17ee2d7c601d79133fdd17f09ba4c01c6b9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for pheno-utils 0.4.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.

Release history Release notifications | RSS feed

This release

0.4.0 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