Skip to main content

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')

Release files for py1kgp 0.1.2

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

Source distribution (sdist)

Source distribution for py1kgp 0.1.2
File Size Uploaded
py1kgp-0.1.2.tar.gz 5.0 kB Details

Built distribution (wheel)

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

Total release size: 10.6 kB

Release files / py1kgp-0.1.2.tar.gz

Download URL py1kgp-0.1.2.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
989b5581e5d76d75876165b3267797a5d1fec1cc49dcb1428fe4ecfd614e014d
BLAKE2b-256 checksum
How to use checksums
dc3e7d3715f0aea5a6edc54cd31d08f61778bc5b71a0763abbd77a706f7b829f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.10

Release files / py1kgp-0.1.2-py3-none-any.whl

Download URL py1kgp-0.1.2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68edde857e7cf2be4b67ef74c9bf1e9e0effefec336bfc3f4d9c7c0395f718fa
BLAKE2b-256 checksum
How to use checksums
90beca0e5b5bdb93def4deb488b59bf92315c1df5125b780ba54aeef1d885f45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.10

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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