Skip to main content

# Pararead: parallel processing of sequencing reads

Pararead is a python package that simplifies parallel processing of DNA sequencing reads (BAM or SAM files), by parallelizing across chromosomes. Pararead is built for developers of python scripts that process data read-by-read. It enables you to quickly and easily parallelize your script.

## Install

Pararead is hosted on pypi. Install with:

`console pip install pararead `

## Minimum working example

In the [examples](https://github.com/databio/pararead/tree/master/examples) folder you can find count_reads.py, which will count the number of reads in a sam/bam file in parallel.

Run this on your bam file like this:

` python examples/count_reads.py file.bam -O output.txt --cores 2 `

Look at the code to see how this is implemented.

## Developing tools that use pararead

The main model provided is an abstract class called ParaReadProcessor, for which concrete children are created by implementing a __call__ method. This creates a callable instance that is then mapped over chromosomes.

The concept is generally described in this early [blog post](http://databio.org/posts/tabix_files.html), which initiated the project that eventually became pararead.

Metadata

Release files for pararead 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pararead 0.8.1
File Size Uploaded Provenance
pararead-0.8.1.tar.gz 19.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pararead 0.8.1
File Interpreter ABI Platform
pararead-0.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 34.2 kB

Release files / pararead-0.8.1.tar.gz

Download URL pararead-0.8.1.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6738b3c3dc5489fee34cfee52fb1c38db4c0ed4b8c25b92ff0add8f41b006de0
BLAKE2b-256 checksum
How to use checksums
9078fbebdd305c950b5d8ab3003c26c2b85576d8b680c664fc2ac0dbaa9609c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 3, 2026.

Transparency log

Release files / pararead-0.8.1-py3-none-any.whl

Download URL pararead-0.8.1-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a88a7dc1c42651e563256fbf35a999f30534ef2a36ddc7cf50a3f479dcba3a1
BLAKE2b-256 checksum
How to use checksums
815aa7a8a1d422bedbfaf3d63be2799446745fbea4b2395e2d0efa02160ad708
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 3, 2026.

Transparency log

Security for pararead 0.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pararead-0.8.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page