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 (defaults to zlib compression)
wobbegongify(sce, "output/my_study")

# OR use lz4 compression
wobbegongify(sce, "output/my_study", compression = "lz4")

2. Read Data (load)

Use wobbegong.load() 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("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.4.tar.gz (33.7 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.4-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file wobbegong-0.0.4.tar.gz.

File metadata

  • Download URL: wobbegong-0.0.4.tar.gz
  • Upload date:
  • Size: 33.7 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.4.tar.gz
Algorithm Hash digest
SHA256 ceccac345faf4bc4918e26ff743947065a0482c99f1a37da4ad47e401f992838
MD5 0b445ccb52e92e768cf86bb05710da94
BLAKE2b-256 ea6bf9100e49bae2710f5902a31d2974cffd24d706ec37f422c17fabc7ceee47

See more details on using hashes here.

Provenance

The following attestation bundles were made for wobbegong-0.0.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: wobbegong-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1249dff90f2e0907fa1d3d99e56cd691bad64623ab209a5f616823de16c25187
MD5 126ce8606f19477419d2c49c2c1f0b23
BLAKE2b-256 30ff50b63ecbc23bde198e6158088cf0c4eb61b49795b34dad760ca9712f7c0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for wobbegong-0.0.4-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