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.6.0-cp313-cp313-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.13Windows x86-64

pod5_random_access-0.6.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.6.0-cp312-cp312-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.12Windows x86-64

pod5_random_access-0.6.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.6.0-cp311-cp311-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.11Windows x86-64

pod5_random_access-0.6.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.6.0-cp310-cp310-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.10Windows x86-64

pod5_random_access-0.6.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.6.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.6.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c92f4f378f8868a3b1ac7e06ccc67b4274d0a0cc6fb6ed64109f55874b70d8d8
MD5 13f72a620ca4ea3d20c5d11081149f6b
BLAKE2b-256 d60c73e6b8a9f8cabda785da22c6fb6478c626c33f8712f2dfeb590cdfffb1de

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.6.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.6.0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.6.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 450d56084fb720f96de4dc217ae149f6bbe1e1e53e3ba2275e09a5d5075f0114
MD5 140333461ada1a5b6bc29e09fe8d9363
BLAKE2b-256 d6cd1161358e8fe7dc6fe00dabda747046f2384328f9ca63b93acfe738acacd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.6.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.6.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c4757e10745fddbeadb5e180a73aa54f8cc7962b0722726d460404bbe3636da7
MD5 bc6c79fb4c9af5fe030b41e26b80fe19
BLAKE2b-256 6ed9b07c60328439d59ee7d4a2ad32fb869980aef648c3c0f6dd06e889241782

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.6.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.6.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.6.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 02ea31e07bde353935aebe3b72478d236e29b4589483a9e38cc2b5ba9096d15a
MD5 725f159b3b54c3e4dddbf30b45675c4f
BLAKE2b-256 33b5f034c981c79b1ecfc89ce80b66f7fe667aa632efa9a730304ffda82293a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.6.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.6.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 90ae7cbd3bdc9262e69a2daa07c7df258fc67a17a9ca9f6c618451edc16742d1
MD5 dbae296f4c2fdccd17413e19b2605a33
BLAKE2b-256 62535fc900b6da1a3fb1f25e05b885774db9805d6839689f886f76b04c292d4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.6.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.6.0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.6.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f01e58427e170b250df1b0dd3e2da56b74e96c0968c88f1116e83bf6169b5d39
MD5 25aafca9211dc173e5c6cb2fc6d2d596
BLAKE2b-256 a37b25af58a578b322bc6d2a8b7661c03fc6e7d5cf6f17d2f1c649d0147bc32d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.6.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.6.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.6.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3317419e97dfda02c01b9725d38b1fcf92c29c275fdc2bc648eabebf506f8463
MD5 be24fc71ed93d140fa6b4a3a9cd2230d
BLAKE2b-256 ee094441cb60cf09d88480f803765e17bcb3e64296414276f534360080616891

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.6.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.6.0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pod5_random_access-0.6.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 76e57747d385abe28f697bd9487efce436356629b7cea82cbe8f83ff5813cb92
MD5 f17cd41767df11619365a66c792de8cb
BLAKE2b-256 c650ca0a549826769d726d7701085016e36a0df574f1e6df90976a81ef992da9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pod5_random_access-0.6.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