Skip to main content

Pheno data utils - viz, loaders, mergers

Project description

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.

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

pheno-utils-0.4.0.tar.gz (45.8 kB view details)

Uploaded Source

Built Distribution

pheno_utils-0.4.0-py3-none-any.whl (52.5 kB view details)

Uploaded Python 3

File details

Details for the file pheno-utils-0.4.0.tar.gz.

File metadata

  • Download URL: pheno-utils-0.4.0.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pheno-utils-0.4.0.tar.gz
Algorithm Hash digest
SHA256 be7a9c606cf7ded56611aed44dfee2f078a1c6794452016ff2e9acd658c8fb39
MD5 7f67ec39b5a85ff44bb22f7a3798eb55
BLAKE2b-256 7b06cfbc77fe02906e5076b4c08c111182f75beaf05da10c32ed9273faebc009

See more details on using hashes here.

File details

Details for the file pheno_utils-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pheno_utils-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 52.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pheno_utils-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afb6a7ea121e5305cc3bd068f0a998c57994c9f81d58335397fe25723952489a
MD5 9a740f732c0a6c20e80c0dca1b4e234f
BLAKE2b-256 5700e7867421e0177c3cc72beacd17ee2d7c601d79133fdd17f09ba4c01c6b9b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page