Skip to main content

pycoqc-ng

CI Coverage Latest release Bioconda PyPI Python versions License: GPLv3 Documentation DOI

pycoqc-ng is a maintained continuation of pycoQC by Adrien Leger and Tommaso Leonardi, which is no longer developed. It keeps the original reports and adds support for the current Oxford Nanopore toolchain.

What this fork adds

  • Dorado / unaligned BAM input via Bam_to_seq_summary
  • POD5 input via Pod5_to_seq_summary
  • FASTQ input via Fastq_to_seq_summary, including %GC metrics and plots
  • Per-barcode length and %GC boxplots, and a basecall summary broken down by barcode
  • Run health plots: read end reasons, translocation speed and active channels per mux over the run, from Dorado's read tags or a POD5
  • Runs on current dependencies: numpy 2.x, pandas 2.x and 3.x, plotly 5 to 7, pysam 0.22+, Python 3.9 to 3.13
  • A lightweight static PDF report alongside the interactive HTML one
  • No compiled extension, so it installs as a pure Python package

Installation

pip install pycoqc-ng

Or the current development version:

pip install git+https://github.com/duceppemo/pycoqc-ng.git

Conda, once the recipe is merged:

conda create -n pycoqc-ng -c conda-forge -c bioconda pycoqc-ng

The bioconda recipe is in review, so the bioconda badge above reads "not found" until it lands.

To work on the code:

git clone https://github.com/duceppemo/pycoqc-ng.git
cd pycoqc-ng
pip install -e ".[dev]"
pytest

Usage

Generate a report from a basecaller summary:

pycoQC -f sequencing_summary.txt -o pycoQC_report.html

With a Guppy barcoding file, plus a machine-readable summary:

pycoQC -f sequencing_summary.txt -b barcoding_summary.txt \
       -o pycoQC_report.html -j pycoQC_report.json

If you have no summary file, build one from the basecaller output first:

# Dorado unaligned BAM
Bam_to_seq_summary -f bam_dir/ -s sequencing_summary.txt

# POD5 (raw signal: gives a shorter report, with no read length or quality)
Pod5_to_seq_summary -f pod5_dir/ -s sequencing_summary.txt

# FASTQ (adds %GC)
Fastq_to_seq_summary -f fastq_dir/ -s sequencing_summary.txt

# legacy FAST5
Fast5_to_seq_summary -f fast5_dir/ -s sequencing_summary.txt

Split a summary by barcode:

Barcode_split -f sequencing_summary.txt -o split_dir/

Every command takes --help. pycoQC --default_config prints the plot configuration, which you can edit and pass back with --config_file.

The API mirrors the CLI:

from pycoQC.pycoQC import pycoQC

pycoQC(summary_file="sequencing_summary.txt",
       html_outfile="pycoQC_report.html",
       json_outfile="pycoQC_report.json")

Documentation

Full documentation is in the wiki: Installation · Usage · Input formats · Outputs · Configuration · FAQ

The wiki is maintained in docs/wiki/ and published by a workflow, so send documentation changes as pull requests against those files rather than editing the wiki directly.

An example PDF report built from the bundled test data is in docs/examples/.

Citing

The method and the original implementation are published in JOSS. If you use this tool, please cite the original authors:

Leger A. and Leonardi T. (2019). pycoQC, interactive quality control for Oxford Nanopore Sequencing. Journal of Open Source Software, 4(34), 1236. https://doi.org/10.21105/joss.01236

JOSS

To reference a specific version of this software, the Zenodo concept DOI 10.5281/zenodo.23484147 always resolves to the latest release. See CITATION.cff.

Disclaimer

This is research software under active development. It is tested on Linux and macOS.

Licence

GPLv3, unchanged from the original project. See LICENSE.

Copyright © 2019-2024 Adrien Leger & Tommaso Leonardi Copyright © 2023-2026 Marc-Olivier Duceppe

Authors

  • Adrien Leger and Tommaso Leonardi — original pycoQC
  • Marc-Olivier Duceppe — this fork

Metadata

Release files for pycoqc-ng 3.2.0

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

Source distribution (sdist)

Source distribution for pycoqc-ng 3.2.0
File Size Uploaded Provenance Actions
pycoqc_ng-3.2.0.tar.gz 271.8 kB With provenance Details for pycoqc_ng-3.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycoqc-ng 3.2.0
File Interpreter ABI Platform Actions
pycoqc_ng-3.2.0-py3-none-any.whl Python 3 none any Details for pycoqc_ng-3.2.0-py3-none-any.whl

Total release size: 480.0 kB

Release files / pycoqc_ng-3.2.0.tar.gz

Download URL pycoqc_ng-3.2.0.tar.gz
Size 271.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e2c98141bb40ceeb88f8f52c98c9edc227c7943f6376ae19f68af044b68a51a0
BLAKE2b-256 checksum
How to use checksums
1642af76639a12b232f40cd63e67655559f5d46f41ee569924bb9321290db904
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / pycoqc_ng-3.2.0-py3-none-any.whl

Download URL pycoqc_ng-3.2.0-py3-none-any.whl
Size 208.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
318dd0500dc35b145c8dcde8b47f6911aff44f7809b3a4cbdc8515d9e86b5b78
BLAKE2b-256 checksum
How to use checksums
5e6c8388752ded37ad190f8381f0959e524a62ac2b8e208875db28a15910f49f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Security for pycoqc-ng 3.2.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pycoqc_ng-3.2.0.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 Nov 17, 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