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.
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.
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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| migec-2.7.3.tar.gz | 1.4 MB | With provenance | Details for migec-2.7.3.tar.gz |
Built distributions (wheels)
Total release size: 6.4 MB
Release files / migec-2.7.3.tar.gz
| Download URL | migec-2.7.3.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4006432e57e730933c617adcaeb6a23b5321445a7e53ab16bd52ac84b8eb4f79
|
|
BLAKE2b-256 checksum How to use checksums |
7a34b772384e9f9a7fbda6d3910064849c2b572efac140504597c2bba4fff2dc
|
| 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 logRelease files / migec-2.7.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | migec-2.7.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 744.0 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b2d703b5cb9a75e2a71f6c9228c2cbbc2d23cd06e206ff19ef521e995bc7ed04
|
|
BLAKE2b-256 checksum How to use checksums |
b76a52efdd07f19241d744f70bc6e34ff729c96d3a201507cd776c14d9be2887
|
| 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 logRelease files / migec-2.7.3-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | migec-2.7.3-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 528.3 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d5c6c2ce40eb6e5ae91f11f15b74640410e9824d6bc5529c6b66be76de595d48
|
|
BLAKE2b-256 checksum How to use checksums |
c2587e0087be5756c0c66fd58295413c720b3872b59ab263582ecbe09617eabc
|
| 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 logRelease files / migec-2.7.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | migec-2.7.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 743.8 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
12e5e6f4023339e9b5130ef22af814575d958272ec576836b6956d95531ac7b8
|
|
BLAKE2b-256 checksum How to use checksums |
ea8300ad29f960ebfad1f4f7761888537bce9517f4c489307f5aae5ec7d0cb68
|
| 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 logRelease files / migec-2.7.3-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | migec-2.7.3-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 527.7 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2b09aff619bea280626c71f4d808e9ea20dd2cf38befb0ecf038eea89ad9c561
|
|
BLAKE2b-256 checksum How to use checksums |
6ab984bdded092db279f0b615d37766ef4f71877dd46c3a866bb98f4314e7cc8
|
| 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 logRelease files / migec-2.7.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | migec-2.7.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 743.0 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
ab7aca2bd7408330ad3a64da4533daffb391039e7227779a1ddfda5c46126c8a
|
|
BLAKE2b-256 checksum How to use checksums |
478dc4f2e700e36bbca6f484a9f4dfd011845ad748ac849a528a508460300359
|
| 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 logRelease files / migec-2.7.3-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | migec-2.7.3-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 526.0 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
48fb9214925e329944549306fd3ac7ef05600a1a472c9357581e00e222d2116b
|
|
BLAKE2b-256 checksum How to use checksums |
1541e29dcbdbd7f510602b7bfb9ec6b3556dbd359b0f1978f006bea979e49d2d
|
| 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 logRelease files / migec-2.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | migec-2.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 742.9 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
c269f88e5a48e5456016e2b123102aa1580d03567950cbc3ca6b8c4735c34c0f
|
|
BLAKE2b-256 checksum How to use checksums |
6ab323b40ee26e9d3b3f6e17700d33b7aefe91552f30c273957fccec2d25a57e
|
| 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 logRelease files / migec-2.7.3-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | migec-2.7.3-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 524.1 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
958976ae40ea47916f78b4ea017abea000769664528bd8db6560f804893b82e7
|
|
BLAKE2b-256 checksum How to use checksums |
f2f95529b9fc522f3867cd49b62dd1623e9d490782e5715d4ad1490619fbde4c
|
| 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 logSecurity for migec 2.7.3
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.
Attestation for migec-2.7.3.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 logA 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.