Skip to main content

Dask interface for memory-efficient reading PLINK genotype files

Project description

dask-pgen

Lazy loading PLINK genotype data (.pgen or .bed) file with dask-array.

Installation

pip install -U cython numpy
git clone https://github.com/KangchengHou/dask-pgen.git
cd dask-pgen; pip install -e .

Or,

pip install git+https://github.com/KangchengHou/dask-pgen.git

Example

# if dapgen is not found, set the path of dapgen yourself
# chmod +x dask-pgen/bin/dapgen
# dapgen=dask-pgen/bin/dapgen
# replace "dapgen" with "$dapgen"

dapgen score \
    --plink <plink> \
    --weights <weights_path> \
    --weight-col-prefix <weight_column_prefix> \
    --chrom-col CHR --pos-col POS --alt-col A1 --ref-col A2 \
    --out <out_path> \
    --center True # center the genotype or not, default is False \
    --threads 4 \
    --memory 20000

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

dask-pgen-0.1.1.tar.gz (10.8 kB view details)

Uploaded Source

File details

Details for the file dask-pgen-0.1.1.tar.gz.

File metadata

  • Download URL: dask-pgen-0.1.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for dask-pgen-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7e32f12e35c0d0ecc8c18b40de533109ba84e704bd062a7cd1668af6ad118319
MD5 1badab83f144a2867b97ea9be196890b
BLAKE2b-256 63c728c7d62155b2dd8929366cf7545dcce3afc786041e16c60e7a034c4dceb7

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