Skip to main content

Bed Reader

Project description

bed-reader

A simple and efficient PLINK .bed file format reader and writer.

Also, efficiently reads slices of data and accesses individual (sample) and SNP (variant) properties.

CMK example

Documentation

Code

Contacts

Quick install:

If you have pip installed, installation is as easy as:

pip install bed-reader

Detailed Package Install Instructions:

pysnptools has the following dependencies:

python 3.7 or 3.8

Package(s):

  • numpy

(1) Installing from source

Go to the directory where you copied the source code for bed-reader

On Linux:

At the shell, type:

sudo python setup.py install

On Windows:

At the OS command prompt, type

python setup.py install

For developers (and also to run regression tests)

pip install -r requirements-dev.txt

When working on the developer version, first add the src directory of the package to your PYTHONPATH environment variable.

To build extension (from .\src dir), type the following at the OS prompt:

python setup.py build_ext --inplace

Don't forget to set your PYTHONPATH to point to the directory above the one named bed-reader in the bed-reader source code. For e.g. if bed-reader is in the [somedir] directory, then in the Unix shell use:

export PYTHONPATH=$PYTHONPATH:[somedir]

Or in the Windows DOS terminal, one can use:

set PYTHONPATH=%PYTHONPATH%;[somedir]

Note for Windows: You must have Visual Studio installed.

Running regression tests

From the directory tests at the top level, run:

pytest

This will run a series of regression tests.

Note that you must use "python setup.py build_ext --inplace" to run the regression tests, and not "python setup.py install".

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

bed_reader-0.0.3a0-cp38-cp38-win_amd64.whl (472.2 kB view details)

Uploaded CPython 3.8Windows x86-64

bed_reader-0.0.3a0-cp38-cp38-manylinux2010_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

bed_reader-0.0.3a0-cp38-cp38-macosx_10_9_x86_64.whl (142.4 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

bed_reader-0.0.3a0-cp37-cp37m-win_amd64.whl (470.4 kB view details)

Uploaded CPython 3.7mWindows x86-64

bed_reader-0.0.3a0-cp37-cp37m-manylinux2010_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

bed_reader-0.0.3a0-cp37-cp37m-macosx_10_9_x86_64.whl (141.7 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file bed_reader-0.0.3a0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: bed_reader-0.0.3a0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 472.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for bed_reader-0.0.3a0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 262772e5025137facb0e592f5c9792e87bbaeb90c1a920ff06f927a0f98b35cd
MD5 abff1e486ae2ceeee733069dde585b67
BLAKE2b-256 9b953ce5ab1c1caf9604831c9b5f53610396f43ef59f798e234dd9ab9cd2981f

See more details on using hashes here.

File details

Details for the file bed_reader-0.0.3a0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: bed_reader-0.0.3a0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for bed_reader-0.0.3a0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 95e758a17e0c3b35b86ca37bbbb82080fba3cfd9bcee377739174bf43db317a8
MD5 2f50a8e090ea7130aaddb45d9a94d55d
BLAKE2b-256 6983f5ca3367dbe621ab3a296d4d416a15fe3993291ee848f5ec3cc614d39cfe

See more details on using hashes here.

File details

Details for the file bed_reader-0.0.3a0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: bed_reader-0.0.3a0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 142.4 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for bed_reader-0.0.3a0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7fc92468638a899217c4e428e7fc2a0fda5201635ec2746257ba360946e7ae53
MD5 1210c7fca2e2ddc67bed6b4cab5de4fb
BLAKE2b-256 6557ee338afc7189c4ca230cf2f9b54d71d52048654bb13c8bd635a57db52741

See more details on using hashes here.

File details

Details for the file bed_reader-0.0.3a0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: bed_reader-0.0.3a0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 470.4 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for bed_reader-0.0.3a0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 16d02ee4d85f778824f8b9fb1b32459c4fd63738d40897a6c106ba96dc5215ec
MD5 675432a104ab7b9e0ee58b656a9245af
BLAKE2b-256 7c2510a6884e2b3b08b28da60575a61a0f3e375d932e4547b11bcf524bca60d7

See more details on using hashes here.

File details

Details for the file bed_reader-0.0.3a0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: bed_reader-0.0.3a0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for bed_reader-0.0.3a0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0b8769c68a615678128008f488927a41aab840415263364316f5f4fd99dd813c
MD5 6cd5de89002837552928607dc9e86ee0
BLAKE2b-256 179d9215d83a0eb279993b50ae6f7ab085c4b52e520ca3eb9169ccb1fe144147

See more details on using hashes here.

File details

Details for the file bed_reader-0.0.3a0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: bed_reader-0.0.3a0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 141.7 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for bed_reader-0.0.3a0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fbd06cbc8ce5b20735b5469b264c7a14a5f74317ce4e464780ba0670c40b4d41
MD5 ffce80047f3aeb60de510353abbd33e9
BLAKE2b-256 531361560c835e5cb5c3a341d430c26900a93b22b23eb82042cd929359eabe42

See more details on using hashes here.

Supported by

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