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.2.tar.gz (33.4 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.2-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wobbegong-0.0.2.tar.gz
  • Upload date:
  • Size: 33.4 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.2.tar.gz
Algorithm Hash digest
SHA256 84bf4e891a3042860d9188d02787cddb9c5b59c6b9ba3e8b0d3188546c8a893f
MD5 20f1dd36cf048e47cbaa21e0e6800e16
BLAKE2b-256 b1f768180d8f0d8219a156c8e9f544e8fff863b67278db9932bd5246bf6913ab

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: wobbegong-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ec692ec2c64aa2d884c769a5270bacfb49105ae50bc0c450ddd7d4d13bdf339
MD5 1d12eaee62f602a2119f14822033ac51
BLAKE2b-256 36ff29f0f22df360516f58936c800f23a38e0ab310e02a68c201cf883ccfc3ff

See more details on using hashes here.

Provenance

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