Skip to main content

Add your description here

Project description

pod5-random-access

Introduction

A high-performance Python library for efficient random access to nanopore sequencing signals stored in POD5 files. This library creates optimized indexes that enable fast retrieval of specific reads without loading entire files into memory.

Installation

Install from PyPI:

pip install pod5-random-access

Requirements:

  • Python 3.10+

Usage

Basic workflow: Build index → Load reader → Fetch signals

# 1. Build index from POD5 files
from pod5_random_access import build_pod5_index
from pathlib import Path

build_pod5_index(
    input_pod5_dir=Path("path/to/pod5/files"),
    output_index_dir=Path("path/to/index/output")
)

# 2. Load reader with index settings
from pod5_random_access import Pod5RandomAccessReader, IndexSettings

settings = IndexSettings.from_yaml(Path("path/to/index/output/index_settings.yaml"))
reader = Pod5RandomAccessReader()
reader.add_pod5_index_settings(settings)

# 3. Fetch signal data
signal_data = reader.fetch_signal("filename.pod5", "read_uuid") # np.array of int16
offset, scaling = reader.get_calibration("filename.pod5", "read_uuid")
pA_signal = (signal_data + offset) * scaling # converted to pA values

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pod5_random_access-0.5.0-cp313-cp313-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.13Windows x86-64

pod5_random_access-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

pod5_random_access-0.5.0-cp312-cp312-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.12Windows x86-64

pod5_random_access-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pod5_random_access-0.5.0-cp311-cp311-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.11Windows x86-64

pod5_random_access-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pod5_random_access-0.5.0-cp310-cp310-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.10Windows x86-64

pod5_random_access-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

Details for the file pod5_random_access-0.5.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 dc5755a85e1d85d5f9975ec87be159579b6368b3e37bebc37c3a95fa42a4f9ee
MD5 de1101689c91ba6f4787c98961572a20
BLAKE2b-256 7715b596c144924dee64d98e6aad4928bf6269707125f1005007a732485e3705

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.5.0-cp313-cp313-win_amd64.whl:

Publisher: CI.yml on NoguchiRyo/pod5-random-access

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

File details

Details for the file pod5_random_access-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b542a26c7119877e421452f73555eff7f6b9eca6afc1abf110026ed3adc9a606
MD5 66b98a15272350f0d5ff2a0cc9fecf49
BLAKE2b-256 fcf5a6dfc6fc7fc7414dda5e37b3b4539ac1e67dff337d438f26a13c45fb8d2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl:

Publisher: CI.yml on NoguchiRyo/pod5-random-access

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

File details

Details for the file pod5_random_access-0.5.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5809e30ca6776906741736b269f9d3bc5245ae9d3fd9db7459433ef436538121
MD5 afd4cd59f07993a6333fd7226809de22
BLAKE2b-256 c02d18d20ca292c6ae7c2eecd78a3bc8006b81e7b811f0f88df764af27cc0fc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.5.0-cp312-cp312-win_amd64.whl:

Publisher: CI.yml on NoguchiRyo/pod5-random-access

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

File details

Details for the file pod5_random_access-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8c2045fe5af65b5463d2d6c4e6ea914d445ab16eb03873e8560bbd5e9dad76e4
MD5 73980323ce5be0a5d2ed3d118435f146
BLAKE2b-256 ccc48aa8d4ff33044e2eb3369f2e933f66de6e6fd5e4335ef97dc44fe7aa90c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl:

Publisher: CI.yml on NoguchiRyo/pod5-random-access

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

File details

Details for the file pod5_random_access-0.5.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bffcf4be93043ab710c21710f359f4cef941170e61ab7476ef5cdc862a6b2569
MD5 4cba44ecac8af59c1630a9edfbac969a
BLAKE2b-256 358493528256b788f51e77ce4604b5001af5ebf7f659f9ebd54c8465a5a3da4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.5.0-cp311-cp311-win_amd64.whl:

Publisher: CI.yml on NoguchiRyo/pod5-random-access

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

File details

Details for the file pod5_random_access-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 54ffcc7ff2915ec13287c203a29eafa9776eb1ec01cc54d804a9c017be9c8554
MD5 bd6e95b75194390c974dc0e46173a8c2
BLAKE2b-256 c2f52d3dd3177c3471e683c714661076d2efbe1e4b0c82598cdf761687e99dc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl:

Publisher: CI.yml on NoguchiRyo/pod5-random-access

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

File details

Details for the file pod5_random_access-0.5.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6de24b6a65f94f682a25c7e18d0ad8e0f00a3b67aca5881dd5bf905a1b7e24fb
MD5 0c6e735f1803f6438809be7fdd1edb18
BLAKE2b-256 44d1204ce468f5c68adfd99af535bd23172a6d5e170265a6c7d889900e8f7539

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.5.0-cp310-cp310-win_amd64.whl:

Publisher: CI.yml on NoguchiRyo/pod5-random-access

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

File details

Details for the file pod5_random_access-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d9f17634d5ffc7370f1461378bd09f20655a200db429f98e5cc27aea94a38b81
MD5 5aff8756b066374141e49ff19a8cbe2c
BLAKE2b-256 d7a8d575cd455bc6f22340cb7d2f4d87944153a987ca110758fd3b69c19f99b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl:

Publisher: CI.yml on NoguchiRyo/pod5-random-access

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