PySnpTools
PySnpTools is a library for reading and manipulating genetic data.
Main Features:
-
SnpReader: Efficiently read genetic PLINK formats including *.bed/bim/fam files. Also, efficiently read parts of files, read kernel data, and standardize data. New features include multi-threaded BED reading, cluster-ready BED data, on-the-fly SNP generation, and larger in-memory data.
-
DistReader: Efficiently work with unphased BGEN format and other diploid, biallelic distribution data. Also, efficiently read parts of files. See Distribution IPython Notebook.
-
util: In one line, intersect and re-order IIDs from snpreader and other sources. Also, efficiently extract a submatrix from an ndarray.
-
IntRangeSet: Efficiently manipulate ranges of integers - for example, genetic position - with set operators including union, intersection, and set difference.
-
mapreduce1: Run loops locally, on multiple processors, or on any cluster.
-
filecache: Read and write files locally or from/to any remote storage.
Install
pip install pysnptools
If you need support for BGEN files, instead do:
pip install pysnptools[bgen]
Documentation
- Main Documentation with examples. It includes links to tutorial slides, notebooks, and video.
- Project Home and Full Annotated Bibliography
Code
Contacts
- Email the developers at fastlmm-dev@python.org.
- Join the user discussion and announcement list (or use web sign up).
- Open an issue on GitHub.
Metadata
Release files for pysnptools 0.5.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pysnptools-0.5.15.tar.gz | 220.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysnptools-0.5.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 501.1 kB
Release files / pysnptools-0.5.15.tar.gz
| Download URL | pysnptools-0.5.15.tar.gz |
|---|---|
| Size | 220.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16315138c1f1da4e18294f3595fbebd5b6d31263badc24aedd73560f340bebdf
|
|
BLAKE2b-256 checksum How to use checksums |
d3a4c71d1821c4f73ea77a6ef10a3b180cc6edb7e5542dd94f5b860368e6bfd1
|
| 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 Aug 7, 2026.
Transparency logRelease files / pysnptools-0.5.15-py3-none-any.whl
| Download URL | pysnptools-0.5.15-py3-none-any.whl |
|---|---|
| Size | 280.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf1dd3f354f8662933b478648344fed997bf8228954243ab43852017b954c877
|
|
BLAKE2b-256 checksum How to use checksums |
47576dfb06742195532d30ed222a064ad900b353e5921a575583e2ee8018f5f3
|
| 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 Aug 7, 2026.
Transparency log