Skip to main content

Open-Access Computational Biology Datasets

Project description

bedrock-bio

Open-Access Computational Biology Datasets

Description

Efficiently access a curated library of open-access computational biology datasets. Tables support predicate pushdown and projection to the cloud storage backend, enabling quick, iterative access to otherwise massive, unwieldy tables.

bedrock_bio consists of three user-facing functions:

  • list_tables(): returns a list of available table identifiers
  • describe_table('<name>'): returns metadata, citation, and column definitions for a table
  • load_table('<name>', **filters): takes a table name and required partition filters, and returns a lazy DuckDB relation

DuckDB methods (filter, select, limit) can be used on the relation returned by load_table to push down additional row filters and column selections to the storage backend.

Installation

To install the latest release from PyPI:

pip install bedrock-bio

Or install the current development version from GitHub:

pip install git+https://github.com/bedrock-bio/bedrock-bio-client.git@main#subdirectory=python

Examples

import bedrock_bio as bb

List available tables:

bb.list_tables()

Describe a table to see its metadata, citation, and columns:

bb.describe_table('ukb_ppp.pqtls')

Lazily load a table with required partition filters, select columns, and collect into an in-memory data frame:

df = bb.load_table('ukb_ppp.pqtls', ancestry='EUR', protein_id='A0FGR8', panel='Inflammation') \
  .select('chromosome, position, effect_allele, other_allele, beta, neg_log_10_p_value') \
  .fetchdf()

Dataset Requests

To request the addition of a new table to the library, open an issue.

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

bedrock_bio-1.3.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

bedrock_bio-1.3.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file bedrock_bio-1.3.0.tar.gz.

File metadata

  • Download URL: bedrock_bio-1.3.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bedrock_bio-1.3.0.tar.gz
Algorithm Hash digest
SHA256 7f9ca30b472d94a8a87b9cd405d66246a6db1739d3685148735c3a7808c6011c
MD5 8b686458b6294cf6e4e2c430acc2bf80
BLAKE2b-256 0af04ca01adbb6001eac4db0b56f38e55b57f387b259b07aa0d9cef318892458

See more details on using hashes here.

File details

Details for the file bedrock_bio-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: bedrock_bio-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bedrock_bio-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b9f9c51887d0b30561fff8d2fe0b57fe35681fe43f6883f2608035a008251b0
MD5 2dd75980cd78e876aa83970cf4e5b289
BLAKE2b-256 a7d8b56fc5c65b4283d1dcec8265de1ccb9dd941691d9762ddc05f72aa8524cf

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