Skip to main content

Range-request ready format for Bioconductor objects

Project description

PyPI-Server Unit tests

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

wobbegong-0.0.3.tar.gz (33.2 kB view details)

Uploaded Source

Built Distribution

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

wobbegong-0.0.3-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

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

Hashes for wobbegong-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6164567c1dfabab117fd076b8707541388e0ac2b765ffc9abcf320f2fd9b8d8d
MD5 62878a818b5ff0dd43d61b8010b85d8c
BLAKE2b-256 12587d69c4625c955ece9685b2345ea0eb43bdf1a8ab17a70169def92593a3d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for wobbegong-0.0.3.tar.gz:

Publisher: publish-pypi.yml on BiocPy/wobbegong

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for wobbegong-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f886e5ac32291bdc4cf2550c0599d4ee7b35f833ba0a59f2a2283a76b178e698
MD5 7ed40e421e46d42167f053e0ed19ee8a
BLAKE2b-256 f7a797583233dd4bf89c92529fc14fedec9580b04cf3ca9b04024ef074c8272f

See more details on using hashes here.

Provenance

The following attestation bundles were made for wobbegong-0.0.3-py3-none-any.whl:

Publisher: publish-pypi.yml on BiocPy/wobbegong

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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