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.
Metadata
Release files for zipstrain 1.2.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 |
|---|---|---|---|---|
| zipstrain-1.2.3.tar.gz | 181.4 kB | With provenance | Details for zipstrain-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zipstrain-1.2.3-py3-none-any.whl | Python 3 | none | any | Details for zipstrain-1.2.3-py3-none-any.whl |
Total release size: 372.4 kB
Release files / zipstrain-1.2.3.tar.gz
| Download URL | zipstrain-1.2.3.tar.gz |
|---|---|
| Size | 181.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b67185bfcd1f1d3babf74abbcb58fac2abb61719aac47332ba4a19fc422a97f
|
|
BLAKE2b-256 checksum How to use checksums |
051c07731cee53f091ce30eead4fff4ff425e1c797caf784924e92f6452a4323
|
| 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 Oct 27, 2026.
Transparency logRelease files / zipstrain-1.2.3-py3-none-any.whl
| Download URL | zipstrain-1.2.3-py3-none-any.whl |
|---|---|
| Size | 191.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efd871ec587c60df52544569c42f03686fada8076ca9e2d3ddff2f451b2923b1
|
|
BLAKE2b-256 checksum How to use checksums |
c2078f9b042d0bce1403d027f57ab61ac67b61c1a2f1a064b23926cd6216d1d0
|
| 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 Oct 27, 2026.
Transparency logSecurity for zipstrain 1.2.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 2 files in this release have been uploaded with provenance metadata.
Attestation for zipstrain-1.2.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 Oct 27, 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.