Skip to main content

migec

PyPI CI docs python C++ license

migec — molecular identifiers, reliable consensus

Extract barcodes, correct UMI errors and assemble molecular consensus sequences. MIGEC combines a C++20 core with a Python CLI for bulk and cell-barcoded sequencing. It reconstructs molecules; receptor annotation belongs to ARDA.

Schematic: extract barcodes, correct UMI errors, assemble consensus and inspect QC

Install

pip install migec
migec info

Binary wheels support CPython 3.10–3.13 on Linux x86-64 and macOS arm64. For a source checkout, run bash setup.sh. See installation. The original Groovy version remains on legacy-v1.

Quick start

Declare the barcode layout from your library protocol, then run the three stages:

migec checkout reads.fq.gz --bc-pattern '^NNNNNNNN' --sample S1 -o out/
migec refine out/S1.fq.gz -o ref/
migec assemble ref/S1.fq.gz -o cons/

N captures a UMI base; X captures a cell-barcode base. Positional slices such as 0:8, named chemistry presets and sample barcode tables are also supported. Use layouts to match your protocol, and examples for paired and single-cell libraries.

Stage Result
checkout Trimmed, tagged reads and extraction QC
refine Corrected UMI assignments, parent lineage and error diagnostics
assemble Consensus FASTQ, molecule tables and confidence estimates
plot QC figures derived from the stage TSVs

Molecule identity includes sample, cell and UMI. Consensus FASTQ preserves identifiers in read names and SAM-style tags. --min-reads defaults to 1: shallow molecules remain represented. Use migec subsample for a smaller library while retaining all reads of selected molecules.

Why MIGEC

  • Evidence-aware correction. Required seqtree searches support quality-aware UMI correction; bulk correction supports two substitutions, while cell-tagged correction retains radius one. Homopolymer UMI indel correction is not implemented.
  • Honest consensus confidence. Quality is capped by the pre-amplification error floor; consensus cannot remove errors already present before amplification.
  • Inspectable results. Barcode lineage, depth, collisions and quality are reported beside the consensus. Read counts and molecule counts remain distinct.
  • Native processing. Streaming C++ stages expose a Python API and thread budgets for workstation and scheduled-cluster use.

Molecule depth distribution: bars count molecules; the line counts their reads

The illustration above is measured QC, not a schematic. Existing benchmark results, their populations and tradeoffs remain in post-processing, validation and performance.

Documentation

Documentation follows the four Diátaxis needs:

Need Start here
Tutorial — learn by running Quickstart, worked examples
How-to — complete a task Layouts, existing UMI tags, cohorts, downstream tools
Reference — look up an interface Commands, formats
Explanation — understand decisions Method, quality floor, barcode space

Development and agent use

bash setup.sh
source .venv/bin/activate
python -m pytest tests/unit tests/synthetic -q
ruff check python/ tests/
sphinx-build -W --keep-going -b html docs docs/_build/html

The repository skill is skills/migec/SKILL.md. Design and measured limitations live in project/ and ROADMAP.md; public data provenance is in SOURCES.md.

Citing

Until the v2 paper exists, cite the original methods:

  • Shugay M et al. Towards error-free profiling of immune repertoires. Nat Methods 11:653–655 (2014). doi:10.1038/nmeth.2960
  • Shugay M et al. MAGERI: Computational pipeline for molecular-barcoded targeted resequencing. PLoS Comput Biol 13(5):e1005480 (2017). doi:10.1371/journal.pcbi.1005480
  • Turchaninova MA et al. High-quality full-length immunoglobulin profiling with unique molecular barcoding. Nat Protoc 11(9):1599-616 (2016). doi: 10.1038/nprot.2016.093

License

ISALGO LAB Academic and Non-Commercial Research License v1.0. See LICENSE.

Metadata

Release files for migec 2.7.4

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

Source distribution (sdist)

Source distribution for migec 2.7.4
File Size Uploaded Provenance Actions
migec-2.7.4.tar.gz 1.4 MB With provenance Details for migec-2.7.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for migec 2.7.4
File Actions
migec-2.7.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for migec-2.7.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
migec-2.7.4-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for migec-2.7.4-cp313-cp313-macosx_11_0_arm64.whl
migec-2.7.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for migec-2.7.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
migec-2.7.4-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for migec-2.7.4-cp312-cp312-macosx_11_0_arm64.whl
migec-2.7.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for migec-2.7.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
migec-2.7.4-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for migec-2.7.4-cp311-cp311-macosx_11_0_arm64.whl
migec-2.7.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for migec-2.7.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
migec-2.7.4-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for migec-2.7.4-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 6.5 MB

Release files / migec-2.7.4.tar.gz

Download URL migec-2.7.4.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
69c1d4359b6c5fd8f6c5ffb51549fb80402a2151804e0c52193eab7dc1db9e09
BLAKE2b-256 checksum
How to use checksums
ebd5fa1e0f3e13b9ea04e6af27682fe5ed84d09f7cb68e80db9a9ed75793b906
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 15, 2026.

Transparency log

Release files / migec-2.7.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 747.4 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
8b725e2bfd5e172eb6421ec4d4e079c1a87cfe35a527c0a069a926f89394faec
BLAKE2b-256 checksum
How to use checksums
422fa57abe5393264e8b901e022728b418728f1aee4a8438d29710a84e61d709
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 15, 2026.

Transparency log

Release files / migec-2.7.4-cp313-cp313-macosx_11_0_arm64.whl

Download URL migec-2.7.4-cp313-cp313-macosx_11_0_arm64.whl
Size 533.6 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4425d690ee508fa757dc13a417f4464ba8ec1ace3cb2f0dd46188d1dd6bb9b19
BLAKE2b-256 checksum
How to use checksums
476f55d903d7f7b817671d25510ee5b94781c9cd25060ed8d6d318ec04f66b36
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 15, 2026.

Transparency log

Release files / migec-2.7.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 747.3 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6feda8deeab7b676498945c500cb6080c9d54bf1ac7a602976b719ca7e1d5033
BLAKE2b-256 checksum
How to use checksums
46d2de8c18522fc2d6ec4b866f9944d12994743052ce6816a7cbdf3362a2f815
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 15, 2026.

Transparency log

Release files / migec-2.7.4-cp312-cp312-macosx_11_0_arm64.whl

Download URL migec-2.7.4-cp312-cp312-macosx_11_0_arm64.whl
Size 533.1 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3e0ca10217f209fbd9f4992c44decfe47c0918921b8ec551d3a613c339c4c91b
BLAKE2b-256 checksum
How to use checksums
eefcde3d208c360290b635b1139f3f8263250db346374e39e09c85e9cefaa49d
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 15, 2026.

Transparency log

Release files / migec-2.7.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 746.4 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
26b758dcae5acfd14ccc83a590058272f8d1ef9df432f4bae0f7aed0b0bca122
BLAKE2b-256 checksum
How to use checksums
a0c77d2bee7e339329afab94e1cdfda8c89748f1921251e77fb423dfdaf8934b
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 15, 2026.

Transparency log

Release files / migec-2.7.4-cp311-cp311-macosx_11_0_arm64.whl

Download URL migec-2.7.4-cp311-cp311-macosx_11_0_arm64.whl
Size 531.5 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8ee1266ce42a1875fbae03d9cefb6d9a16b3f4c1f2c1a319ac2247949286b9d9
BLAKE2b-256 checksum
How to use checksums
0bb2145730c92e05e7b6252864820553225462a9ad3487fe4900de8b76d452ba
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 15, 2026.

Transparency log

Release files / migec-2.7.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 746.4 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9c94a174a5e24742ac1846a30c557d65e5efddb3b83d91980413356a1eb03d0e
BLAKE2b-256 checksum
How to use checksums
7dcda39e368822a10cbe8be38c97132247cba06059e76708c15609d9882c3ade
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 15, 2026.

Transparency log

Release files / migec-2.7.4-cp310-cp310-macosx_11_0_arm64.whl

Download URL migec-2.7.4-cp310-cp310-macosx_11_0_arm64.whl
Size 529.3 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
928857199a8489ef8c6abf4165eb4f95a2069fedde81f7b4f88c6cd14389734f
BLAKE2b-256 checksum
How to use checksums
65731ad42cd6bd878d2dc1272b3d2867cf024f4f02aab6166897dffe7d548b6c
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 15, 2026.

Transparency log

Security for migec 2.7.4

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 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for migec-2.7.4.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 15, 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