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.5

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.5
File Size Uploaded Provenance Actions
migec-2.7.5.tar.gz 1.4 MB With provenance Details for migec-2.7.5.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for migec 2.7.5
File Actions
migec-2.7.5-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.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
migec-2.7.5-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for migec-2.7.5-cp313-cp313-macosx_11_0_arm64.whl
migec-2.7.5-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.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
migec-2.7.5-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for migec-2.7.5-cp312-cp312-macosx_11_0_arm64.whl
migec-2.7.5-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.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
migec-2.7.5-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for migec-2.7.5-cp311-cp311-macosx_11_0_arm64.whl
migec-2.7.5-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.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
migec-2.7.5-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for migec-2.7.5-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 6.5 MB

Release files / migec-2.7.5.tar.gz

Download URL migec-2.7.5.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
bb65a89021f775d9d3f8bdb8654d0ad1fddb57eef705bd7f3a3fe03dd579611e
BLAKE2b-256 checksum
How to use checksums
d53b6983e75b7ee439f2b4e6603e0f3024785c26a42bafb8aa968630659a8cc7
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.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.5-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
d7117ab31ea7969e445e5018a0fcb02503c85c8370716c3e1592efaac483ab16
BLAKE2b-256 checksum
How to use checksums
f3fd052f110b42742364005a1c6ec72337e7ce19c1fe7ba50f8ca7c4f6e41cf4
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.5-cp313-cp313-macosx_11_0_arm64.whl

Download URL migec-2.7.5-cp313-cp313-macosx_11_0_arm64.whl
Size 533.9 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
12846f52a4cdae2c62608faf863d1ce6ec66aa52732f51f5b76f20f4f935dee1
BLAKE2b-256 checksum
How to use checksums
3a7265c7c6f1bd906568b27ac0b52bd58632250e69fad8d79b6813550e3e3abe
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.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.5-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
9c886087c64775de815af8a44a0ab5ddae9897d7e8673bb440c1bcc344478b99
BLAKE2b-256 checksum
How to use checksums
23addbc075db1f6d676e46ff34b2c684976eb06f9295216d8a8768b249c0c136
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.5-cp312-cp312-macosx_11_0_arm64.whl

Download URL migec-2.7.5-cp312-cp312-macosx_11_0_arm64.whl
Size 533.3 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4c19a03c6c6c01f712eeee93fb000b7083d0405d24cfc65273befd2744c15a18
BLAKE2b-256 checksum
How to use checksums
d5fba285de0336642d445d37c9193332728c29ad840414438687f961064aadb5
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.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 746.3 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
826dd7d6c39a6bce29958ecc10c9d19277edc320944c81ba51e8c59974da415e
BLAKE2b-256 checksum
How to use checksums
3088aad17591ad606ee7cb6133b85b139e2f12801d7e5fe4e0078caba8dd5907
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.5-cp311-cp311-macosx_11_0_arm64.whl

Download URL migec-2.7.5-cp311-cp311-macosx_11_0_arm64.whl
Size 531.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ccaaf8fb6fa137d7f00fad29e965da406be45862f4a84e0e6af845e20cfd67c0
BLAKE2b-256 checksum
How to use checksums
f77e3d65aa5fc86d5a8c029065714c2ea52558da58726856ba0235ba8b2da420
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.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 746.3 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
56da482f2062d2976076dab1a310e6b28b46c53a11f0ed92df8a04cfd3904da8
BLAKE2b-256 checksum
How to use checksums
d8122048c35a41b2253849676ac1b5265f7908856970c626b935658b8f3acc94
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.5-cp310-cp310-macosx_11_0_arm64.whl

Download URL migec-2.7.5-cp310-cp310-macosx_11_0_arm64.whl
Size 529.6 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5d0864a1cbbbe381730efcfbb8979221f4f264e21560db7aa5ffddf3d62b7a55
BLAKE2b-256 checksum
How to use checksums
687863f1b60fc778a28f884be33351e95209bdb9a26789729beebdd07549102b
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.5

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.5.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