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

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.2
File Size Uploaded Provenance Actions
migec-2.7.2.tar.gz 1.3 MB With provenance Details for migec-2.7.2.tar.gz

Built distributions (wheels)

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

Total release size: 6.4 MB

Release files / migec-2.7.2.tar.gz

Download URL migec-2.7.2.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
8af8633096c26eaced14eec34314df4c83f6d478cf50f34587aa00f035e41f36
BLAKE2b-256 checksum
How to use checksums
8bfdb8c22fb77d6964ca3a07df9600f87219142cb7b13baf4dc078f647f052f0
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.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 743.9 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d584b0dd1f0f11a0f3b464f84a73c63a35a1238284761cf07986e2b3a6c5654a
BLAKE2b-256 checksum
How to use checksums
ec80e06a5ada32616469762c5de9409a54ea43581f3bbe53731db51f06761c5d
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.2-cp313-cp313-macosx_11_0_arm64.whl

Download URL migec-2.7.2-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
505d4df3014c90bac322f0b14f2cb8403376f864b0083081bd0752028aad5f10
BLAKE2b-256 checksum
How to use checksums
122c0ace77c81263136f9daa52063b672886f213a5ef4e7614c0a10614c999f9
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.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 743.7 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
c029110f314911e6b01ecad3688c316eaaf0c939aebf6f06cb23bfb0a250ca66
BLAKE2b-256 checksum
How to use checksums
5a6e46ec1a66c41e2ac5d423355873042f51f91083f61e62b12c6a78203b72e6
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.2-cp312-cp312-macosx_11_0_arm64.whl

Download URL migec-2.7.2-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
aa54b9ab30916dc478205d49e7c5c8dbf372f98143044c7b2e6f48c53c2a7c6e
BLAKE2b-256 checksum
How to use checksums
c0ee62d0e7704d04c1943f3d35ba45c70c951feac41755ea57e1dfbcd86e21d8
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.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 742.9 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b064fffbdadc50538d2647aea7512290d3614b3d99807f045a91b35f1641857a
BLAKE2b-256 checksum
How to use checksums
db98b72e69ed33a947a3878caae54cce9bc42a2f94f17093986614bb47e014ea
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.2-cp311-cp311-macosx_11_0_arm64.whl

Download URL migec-2.7.2-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
2e29ef1307e7ec0488a7573b0417a91c5e748a612c03da741e42ffac47fe323d
BLAKE2b-256 checksum
How to use checksums
e161c45ae5c7f049b01bbfcfb77e2658a9d1f091de9a4e14ea91f012f480764d
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.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL migec-2.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 742.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7ab2594d348431a97dca3ff796dfac7f73fb3147557afae88b45bddcfd8625bd
BLAKE2b-256 checksum
How to use checksums
a2a556587dd2dc4a702293736f90c141591e21120988e4485444ea6d645fbf38
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.2-cp310-cp310-macosx_11_0_arm64.whl

Download URL migec-2.7.2-cp310-cp310-macosx_11_0_arm64.whl
Size 524.0 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
27329a5123deb2a2650213d20170d80d3f2bde5849f7de6fc023f0d33fe536af
BLAKE2b-256 checksum
How to use checksums
ae1d645239a1e7213f302c7fc9b437f33f6699c30fd9050eaf9e5a8aed2d43c4
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.2

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