ZipStrain
Fast strain-level metagenomics in three commands: map reads to BAMs,
profile them into per-position nucleotide-count tables, and compare
samples by ANI to tell whether they share a strain.
Documentation:
- Docs: https://OlmLab.github.io/ZipStrain/
- Repository: https://github.com/OlmLab/ZipStrain
Install
Conda is the easiest path — it brings in samtools and the map aligners too:
conda create -n zipstrain -c conda-forge -c bioconda \
python=3.12 zipstrain bowtie2 samtools sylph
Or with pip (into a fresh virtual environment):
pip install zipstrain
Matrix-store comparison dependencies (compare --method matrix):
pip install "zipstrain[matrix]"
Notes:
-
With pip, install
samtoolsseparately (profiling needs it);zipstrain mapadditionally needsbowtie2andsylph(andprodigalfor--predict-genes). -
On Apple Silicon, use a native
osx-arm64Conda so dependencies install natively; the standardtorchwheel uses the MPS backend. -
Linux CUDA installs should replace Torch with the matching CUDA wheel from PyTorch:
pip install "zipstrain[matrix]" pip install --upgrade torch --index-url https://download.pytorch.org/whl/cu124
See the installation guide for full details.
Verify
zipstrain --version
zipstrain test
Cite
If you use ZipStrain in your research, please cite the preprint:
Ghadermazi P, Emerson JB, Olm MR. 2026. ZipStrain Enables Rapid and Precise
Strain-Resolved Metagenomics. bioRxiv. DOI:
10.64898/2026.05.20.726564
GitHub citation metadata is provided in CITATION.cff:
License
ZipStrain is distributed under the MIT License.
Release files for zipstrain 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zipstrain-1.1.1.tar.gz | 169.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zipstrain-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 346.7 kB
Release files / zipstrain-1.1.1.tar.gz
| Download URL | zipstrain-1.1.1.tar.gz |
|---|---|
| Size | 169.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4c8ff801381c2a3c4b27c840b02ddbcc95edea8ba5d96ab7d8dae244ca6e683
|
|
BLAKE2b-256 checksum How to use checksums |
eeab69d1beffd4699043da99aab074d2c16578d12d0af042d8731d3fe3f01a9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 23, 2026.
Transparency logRelease files / zipstrain-1.1.1-py3-none-any.whl
| Download URL | zipstrain-1.1.1-py3-none-any.whl |
|---|---|
| Size | 177.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59ea983a5ccbebdd28d34f62696f9536abfbe99ec363b31a1246bedf35081301
|
|
BLAKE2b-256 checksum How to use checksums |
fcee166595ddf99d238a10de08b14e97613ae6ae7eb8602650392e7b2937ed5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 23, 2026.
Transparency log