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.5.tar.gz (34.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.5-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wobbegong-0.0.5.tar.gz
  • Upload date:
  • Size: 34.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.5.tar.gz
Algorithm Hash digest
SHA256 5e83bba25b4aeeeee2ad85e42cd1b55d63fe86351d5eba31bc981ed8d57ab743
MD5 c7d8dd6ed4d9f7cd26dc500d9cb10e64
BLAKE2b-256 c9bab1cbf161599f470705415a2b809037c6286434f045cdcba2468e2df2f58f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: wobbegong-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 17.6 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8a66b97584ca9d2456f14cb9324f7b62438029e287b70803b9d883c990f40e4b
MD5 6bf60cd4be37ac2d8d1a82ea7da294f2
BLAKE2b-256 dc526c60dd4b34f9211d055cd1df3b466e50611fba0f5549baf3a87e51de7735

See more details on using hashes here.

Provenance

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