Range-request ready format for Bioconductor objects
Project description
wobbegong
wobbegong converts Bioconductor objects (like BiocFrame, SummarizedExperiment, and SingleCellExperiment) into a set of static files optimized for HTTP range requests.
It includes a native Python client that allows you to query these datasets remotely, fetching only the specific genes or metadata columns you need without downloading the entire file.
[!NOTE]
Check out the R version of this package here.
Install
To get started, install the package from PyPI
pip install wobbegong
Quick Start
1. Convert Data (wobbegongify)
Use wobbegongify to convert your objects into static files.
from wobbegong import wobbegongify
from biocframe import BiocFrame
from singlecellexperiment import SingleCellExperiment
from scipy import sparse
import numpy as np
# 1. Create a SingleCellExperiment
counts = sparse.random(100, 20, density=0.1, format="csr")
pca = np.random.randn(20, 5)
sce = SingleCellExperiment(
assays={"counts": counts},
reduced_dims={"PCA": pca}
)
# 2. Convert to wobbegong format
wobbegongify(sce, "output/my_study")
2. Read Data (load_wobbegong)
Use wobbegong.load_wobbegong() to read data from a local path or a remote URL. The client automatically handles HTTP range requests for you.
import wobbegong
# Load from a local directory (or URL)
sce = wobbegong.load_wobbegong("output/my_study")
# Access Assays (Row-wise access is optimized)
counts = sce.get_assay("counts")
gene_expression = counts.get_row(0)
# Access Reduced Dimensions
pca = sce.get_reduced_dim("PCA")
pc1 = pca.get_column(0)
Note
This project has been set up using BiocSetup and PyScaffold.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wobbegong-0.0.3.tar.gz.
File metadata
- Download URL: wobbegong-0.0.3.tar.gz
- Upload date:
- Size: 33.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6164567c1dfabab117fd076b8707541388e0ac2b765ffc9abcf320f2fd9b8d8d
|
|
| MD5 |
62878a818b5ff0dd43d61b8010b85d8c
|
|
| BLAKE2b-256 |
12587d69c4625c955ece9685b2345ea0eb43bdf1a8ab17a70169def92593a3d3
|
Provenance
The following attestation bundles were made for wobbegong-0.0.3.tar.gz:
Publisher:
publish-pypi.yml on BiocPy/wobbegong
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wobbegong-0.0.3.tar.gz -
Subject digest:
6164567c1dfabab117fd076b8707541388e0ac2b765ffc9abcf320f2fd9b8d8d - Sigstore transparency entry: 871894375
- Sigstore integration time:
-
Permalink:
BiocPy/wobbegong@26bbe305d35b905a151124063c3cc84cf9ba742e -
Branch / Tag:
refs/tags/0.0.3 - Owner: https://github.com/BiocPy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@26bbe305d35b905a151124063c3cc84cf9ba742e -
Trigger Event:
push
-
Statement type:
File details
Details for the file wobbegong-0.0.3-py3-none-any.whl.
File metadata
- Download URL: wobbegong-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f886e5ac32291bdc4cf2550c0599d4ee7b35f833ba0a59f2a2283a76b178e698
|
|
| MD5 |
7ed40e421e46d42167f053e0ed19ee8a
|
|
| BLAKE2b-256 |
f7a797583233dd4bf89c92529fc14fedec9580b04cf3ca9b04024ef074c8272f
|
Provenance
The following attestation bundles were made for wobbegong-0.0.3-py3-none-any.whl:
Publisher:
publish-pypi.yml on BiocPy/wobbegong
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wobbegong-0.0.3-py3-none-any.whl -
Subject digest:
f886e5ac32291bdc4cf2550c0599d4ee7b35f833ba0a59f2a2283a76b178e698 - Sigstore transparency entry: 871894376
- Sigstore integration time:
-
Permalink:
BiocPy/wobbegong@26bbe305d35b905a151124063c3cc84cf9ba742e -
Branch / Tag:
refs/tags/0.0.3 - Owner: https://github.com/BiocPy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@26bbe305d35b905a151124063c3cc84cf9ba742e -
Trigger Event:
push
-
Statement type: