Skip to main content

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

Requires Python 3.11.5 or later. Python 3.15 qualification is in progress.

HDF5 support is optional. To read or write HDF5 files, install:

pip install pysnptools[hdf5]

Existing HDF5 users upgrading from an earlier release should install this extra.

If you need support for BGEN files, instead do:

pip install pysnptools[bgen]

Documentation

Code

Contacts

Metadata

Release files for pysnptools 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysnptools 1.0.0
File Size Uploaded Provenance Actions
pysnptools-1.0.0.tar.gz 222.5 kB With provenance Details for pysnptools-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysnptools 1.0.0
File Interpreter ABI Platform Actions
pysnptools-1.0.0-py3-none-any.whl Python 3 none any Details for pysnptools-1.0.0-py3-none-any.whl

Total release size: 505.8 kB

Release files / pysnptools-1.0.0.tar.gz

Download URL pysnptools-1.0.0.tar.gz
Size 222.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e020175646df92ec13942fbd72b2929445e31e78a22a60abf614be7f5b66e23f
BLAKE2b-256 checksum
How to use checksums
825f432df43f17797dab1c593a1cdbce198dd4863d20816f091839b815eb58fe
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 14, 2026.

Transparency log

Release files / pysnptools-1.0.0-py3-none-any.whl

Download URL pysnptools-1.0.0-py3-none-any.whl
Size 283.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5bab3406918f62704032d192986b0f5a299bd75aa4c8b25b1e58938b5414554
BLAKE2b-256 checksum
How to use checksums
3e5adc7bacfa8c364e641cfcdeeaa846ceb30d6ef538c6303e288ad90f8b9583
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 14, 2026.

Transparency log

Security for pysnptools 1.0.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pysnptools-1.0.0.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 14, 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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

0.3.10

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