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.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 pycoqc-ng 3.2.1
File Size Uploaded Provenance Actions
pycoqc_ng-3.2.1.tar.gz 274.2 kB With provenance Details for pycoqc_ng-3.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 483.7 kB

Release files / pycoqc_ng-3.2.1.tar.gz

Download URL pycoqc_ng-3.2.1.tar.gz
Size 274.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f72ba555263434a785a973692857232f43bd9bf45739ab66f6ec79054725041a
BLAKE2b-256 checksum
How to use checksums
d52b68f6373fb709a3405a8868c296c0431f7dc04f5211ecf7fee28f1670a462
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 18, 2026.

Transparency log

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

Download URL pycoqc_ng-3.2.1-py3-none-any.whl
Size 209.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8622d5ebcfa98ff1ac02d320916116a85748d25e0d04ce2e30fd72e123bbcad
BLAKE2b-256 checksum
How to use checksums
16ea93ff08a26d2ee8f2ab28c43ca8c379cd2e98805241d2a2d681fdbae7e7e3
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 18, 2026.

Transparency log

Security for pycoqc-ng 3.2.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

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

Select from 2 files

Attestation for pycoqc_ng-3.2.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 Nov 18, 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