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 five user-facing functions:
list_namespaces(): returns a list of available namespace (data source) identifiersdescribe_namespace('<name>'): returns a namespace's name, citation, license, context, and its tableslist_tables(namespace): returns a list of table identifiers, optionally filtered to one namespacedescribe_table('<name>'): returns a table's context, column definitions, and partition columns (with their allowed values)load_table('<name>'): returns a lazy DuckDB relation for a table
DuckDB methods (filter, select, limit) can be used on the relation
returned by load_table to push down row filters and column selections to
the storage backend. Filtering on the partition columns returned by
describe_table gives the fastest reads.
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, filter on partition columns (for fastest reads), select columns, and collect into an in-memory data frame:
df = (
bb.load_table('ukb_ppp.pqtls')
.filter("ancestry = 'EUR' AND protein_id = 'A0FGR8' AND panel = 'Inflammation'")
.select('chromosome, position, effect_allele, other_allele, beta, neg_log_10_p_value')
.df()
)
Dataset Requests
To request the addition of a new table to the library, open an issue.
Metadata
Release files for bedrock_bio 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bedrock_bio-2.0.0.tar.gz | 17.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bedrock_bio-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.0 kB
Release files / bedrock_bio-2.0.0.tar.gz
| Download URL | bedrock_bio-2.0.0.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46eacb2788feaf3af60d57eeeb8b4b8e7b37a50d9a5a9ed708649cea6bc15482
|
|
BLAKE2b-256 checksum How to use checksums |
a947b38729c4bdd9aa27a66cfcc0892c955f341922a3d6f956f340c62606526a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}
|
Release files / bedrock_bio-2.0.0-py3-none-any.whl
| Download URL | bedrock_bio-2.0.0-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e613aece3882f858b5eed77d9b21f59c1267c66043528ecbb0ca1f1d909cbc9b
|
|
BLAKE2b-256 checksum How to use checksums |
0f8a789981d495a18ccfb5ed3185e639b93caf8e4cde2052b23000bdabe9d400
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}
|
Security for bedrock_bio 2.0.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.