Skip to main content

Utilities for working with 1000 Genomes data

Project description

py1kgp

Utilities for working with 1000 Genomes data

Installation

First make sure you have followed the installation procedure for pydbsnp. Then install py1kgp with pip3:

pip3 install py1kgp

or

pip3 install --user py1kgp

For full functionality, you should appropriately set the environment variable PY1KGP_DIR. For example, you could add this to your .bash_profile:

export PY1KGP_DIR=<path to directory of your choice>

Examples

import py1kgp
py1kgp.Variant('rs10')
py1kgp.Variant(id='rs10')
py1kgp.Variant(7, 92383888)
py1kgp.Variant(chrom=7, pos=92383888)
py1kgp.fast_genotypes(7, 92383888)
py1kgp.fast_genotypes(7, 92383888, samples='NA21142,NA21143,NA21144')
py1kgp.fast_maf(7, 92383888)
py1kgp.slice_vcf(1, 1000000, 2000000)
py1kgp.slice_vcf(1, 1000000, 2000000, samples='NA21142,NA21143,NA21144')
py1kgp.slice_vcf(1, 1000000, 2000000, samples='AFR')
py1kgp.slice_vcf(1, 1000000, 2000000, samples='samples.panel')

Project details


Download files

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

Source Distribution

py1kgp-0.1.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

py1kgp-0.1.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file py1kgp-0.1.2.tar.gz.

File metadata

  • Download URL: py1kgp-0.1.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.10

File hashes

Hashes for py1kgp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 989b5581e5d76d75876165b3267797a5d1fec1cc49dcb1428fe4ecfd614e014d
MD5 a6b553d153ece5be827af5f38e3de909
BLAKE2b-256 dc3e7d3715f0aea5a6edc54cd31d08f61778bc5b71a0763abbd77a706f7b829f

See more details on using hashes here.

File details

Details for the file py1kgp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: py1kgp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.10

File hashes

Hashes for py1kgp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68edde857e7cf2be4b67ef74c9bf1e9e0effefec336bfc3f4d9c7c0395f718fa
MD5 e51994b1e38ae7af62b68b5acb561b61
BLAKE2b-256 90beca0e5b5bdb93def4deb488b59bf92315c1df5125b780ba54aeef1d885f45

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page