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

If you need support for BGEN files, instead do:

pip install pysnptools[bgen]

Documentation

Code

Contacts

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysnptools-0.5.15.tar.gz (220.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysnptools-0.5.15-py3-none-any.whl (280.9 kB view details)

Uploaded Python 3

File details

Details for the file pysnptools-0.5.15.tar.gz.

File metadata

  • Download URL: pysnptools-0.5.15.tar.gz
  • Upload date:
  • Size: 220.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pysnptools-0.5.15.tar.gz
Algorithm Hash digest
SHA256 16315138c1f1da4e18294f3595fbebd5b6d31263badc24aedd73560f340bebdf
MD5 56d0852302a82df8ceee9fa5b427b551
BLAKE2b-256 d3a4c71d1821c4f73ea77a6ef10a3b180cc6edb7e5542dd94f5b860368e6bfd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysnptools-0.5.15.tar.gz:

Publisher: release.yml on fastlmm/PySnpTools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pysnptools-0.5.15-py3-none-any.whl.

File metadata

  • Download URL: pysnptools-0.5.15-py3-none-any.whl
  • Upload date:
  • Size: 280.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pysnptools-0.5.15-py3-none-any.whl
Algorithm Hash digest
SHA256 bf1dd3f354f8662933b478648344fed997bf8228954243ab43852017b954c877
MD5 83982c487670d7fd9a6e6b9260e74c64
BLAKE2b-256 47576dfb06742195532d30ed222a064ad900b353e5921a575583e2ee8018f5f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysnptools-0.5.15-py3-none-any.whl:

Publisher: release.yml on fastlmm/PySnpTools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page