Skip to main content

Package for loading data from bcf files

Project description

pybcf

This is a package for reading BCF files (binary call format). Similar to pysam/cyvcf2, but limited to reading from BCF files only, and oriented around getting genotype data into numpy arrays quickly.

'''py from pybcf import BcfReader

bcf = BcfReader(bcf_path)

for var in bcf: # the usual attributes are available e.g. # var.chrom, var.pos, var.ref, var.alts, var.info['AF']

# get genotypes as numpy array
genotypes = var.samples['GT']  # as numpy array, missing=-1

'''

Limitations

  • can't fetch variants from random regions yet
  • not extensively tested yet
  • extracting info fields is slow at the moment

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

pybcf-1.0.0.tar.gz (181.9 kB view details)

Uploaded Source

Built Distributions

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

pybcf-1.0.0-cp312-cp312-win_amd64.whl (161.2 kB view details)

Uploaded CPython 3.12Windows x86-64

pybcf-1.0.0-cp312-cp312-win32.whl (140.0 kB view details)

Uploaded CPython 3.12Windows x86

pybcf-1.0.0-cp312-cp312-musllinux_1_1_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12musllinux: musl 1.1+ x86-64

pybcf-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pybcf-1.0.0-cp312-cp312-macosx_11_0_arm64.whl (140.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pybcf-1.0.0-cp311-cp311-win_amd64.whl (161.1 kB view details)

Uploaded CPython 3.11Windows x86-64

pybcf-1.0.0-cp311-cp311-win32.whl (140.0 kB view details)

Uploaded CPython 3.11Windows x86

pybcf-1.0.0-cp311-cp311-musllinux_1_1_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11musllinux: musl 1.1+ x86-64

pybcf-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pybcf-1.0.0-cp311-cp311-macosx_11_0_arm64.whl (139.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pybcf-1.0.0-cp310-cp310-win_amd64.whl (160.9 kB view details)

Uploaded CPython 3.10Windows x86-64

pybcf-1.0.0-cp310-cp310-win32.whl (140.6 kB view details)

Uploaded CPython 3.10Windows x86

pybcf-1.0.0-cp310-cp310-musllinux_1_1_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.10musllinux: musl 1.1+ x86-64

pybcf-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pybcf-1.0.0-cp310-cp310-macosx_11_0_arm64.whl (139.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pybcf-1.0.0-cp39-cp39-win_amd64.whl (161.0 kB view details)

Uploaded CPython 3.9Windows x86-64

pybcf-1.0.0-cp39-cp39-win32.whl (140.7 kB view details)

Uploaded CPython 3.9Windows x86

pybcf-1.0.0-cp39-cp39-musllinux_1_1_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.9musllinux: musl 1.1+ x86-64

pybcf-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pybcf-1.0.0-cp39-cp39-macosx_11_0_arm64.whl (139.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pybcf-1.0.0-cp38-cp38-win_amd64.whl (161.0 kB view details)

Uploaded CPython 3.8Windows x86-64

pybcf-1.0.0-cp38-cp38-win32.whl (140.8 kB view details)

Uploaded CPython 3.8Windows x86

pybcf-1.0.0-cp38-cp38-musllinux_1_1_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.8musllinux: musl 1.1+ x86-64

pybcf-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pybcf-1.0.0-cp38-cp38-macosx_11_0_arm64.whl (140.3 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file pybcf-1.0.0.tar.gz.

File metadata

  • Download URL: pybcf-1.0.0.tar.gz
  • Upload date:
  • Size: 181.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0.tar.gz
Algorithm Hash digest
SHA256 130f2012c87f2fe33bdaf57565f056c3d7f162cb89ea73792e9bb0e1178278a2
MD5 f985b65a2d53ddcb76dae4527320b1aa
BLAKE2b-256 ce4e4cfd88308931c37ba9e7186f44013088a5820bbe30937de257a01ade20be

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 161.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1d6dbccbf673b417693a621e60cd87509458b9c6fd69d9137eb3575076cb3163
MD5 90c0367c333de89a8b7d16b70a43da08
BLAKE2b-256 23c3c68a901e1af263ca406771022c9a0a0a0f9d41b139519e51927061296b85

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp312-cp312-win32.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp312-cp312-win32.whl
  • Upload date:
  • Size: 140.0 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e038617be3f23148decaaf6d4d5468b043517426deab1904bdd9c1e26b734851
MD5 3f37a01fd4c26c39d4b2a315d2699218
BLAKE2b-256 cc7c04860faf1538d9d8e59bbf523c5d157ae129e182fe990ee88c2dc3d601e5

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp312-cp312-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 98d9cbeb6a9cc64ab082e02e08e3d297c3df6529e4bf80a64fcf07fb4236bbc8
MD5 6a144d39a1afe94232f3e4e0207cb1dd
BLAKE2b-256 d10d25e7adfc8823043c485fceda5dfef20bbf3b6d73cb50922765d4e7d4a818

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4928f2c09d7ada4bcd69c1d666fa7170b51ea2eed48072cec7c606f15c89fb59
MD5 2a253b535a25c2ddc8d6249d2bd2b6d5
BLAKE2b-256 8e1f15d30982744e2c82c0e8f64b27af330994176050b5532f18f90d277bec69

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff26e52b3fb3be8abbca95625718e04085f66d877e02a2c137ed8f1dd1d9bf04
MD5 b7308c8e48f35de66ed04df744431578
BLAKE2b-256 5782e445472bb135ce10dd65636f1b685255018d4352763c7265c5c412c8b616

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 161.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 521ded7e788bca54e92f722cef7abf3679a5443d586fcdd08fbf3184f431d3e6
MD5 3bb259f317de12ec2742ee30d8ace897
BLAKE2b-256 44145606f2de17d834d0f5445d94504ff5b8e7d0bbf4940726d091c858bfc235

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp311-cp311-win32.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 140.0 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9f423bc5a3e3888d882ed2d2c98566a6c233dffd5cb233164e56574bbfa228fd
MD5 46c6d50759743a730936a011c364e6a4
BLAKE2b-256 72bb61f0c06ba6a3823ec12f8b1f185ab6ccbdab519d4c3fb0cba0385fb7320d

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 c734f00357a514b6df1158244de3084a78db3be4414b56b73e9ca94875c2ac57
MD5 2578cc5de5a51f1c6c1771485ffa3ebc
BLAKE2b-256 5f029cecced4466508f389a16be7b92ba9be02c7ba8912000d568c30114b4990

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 81db043052a52d311b442d12efb3a6a7d19e78546c922fef514da0656af39177
MD5 0af5e32ea680c5b5a9485dd5a645a9cb
BLAKE2b-256 7299b791a7d74b008c33b8a5178bf2bcc7ac3bdca30b783838833f025c1f8b7d

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a511a26b5a35b4f02ca322b6595260f17caa710100571b7aabf939fe85f5a63
MD5 237db5d080e5eb3e260dc4d67b435b63
BLAKE2b-256 4212d952f2e26d3bd456f88fddad4b989e882ee51bc00274829ecaac1c54add1

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 160.9 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0908b3d376786db07ac4956991c40235c4d83407f9befa4dc1d55329e2de0f36
MD5 943e1a58d1ee1fad5e51b5d0b3427e59
BLAKE2b-256 348b314e044adf5d577e5e2e449a9b53cc3105f6a4118a17a7aae2b81887e5c5

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp310-cp310-win32.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 140.6 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9059d6241acfc75bb4454f410e37b4e4ddd4dbc39d26f4a353286c37f5424b73
MD5 2639e2de665e6157997a892b6fc8ddb1
BLAKE2b-256 4c27976068464a327299edee78da2f9231f4f041a3d893a608b5029391d7da2a

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 53017df72f27646f1f055fcf3c5404f23c6e612457a5c0061bb5b203c062a3a1
MD5 f5127ca46e2903dac842a36694e880f7
BLAKE2b-256 69caaf294febd4353ebbc2a0d96cd5480abcf21d28bd03442d016b5162bca6a3

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 457a9a13a0ba429cf2e52cfa4c5f08ff081b4f9157e1a20054161e7019de9367
MD5 979aaee95bb1ad4d3b3cc61562815208
BLAKE2b-256 e8a23b9f92c8fefbb1d2da3841d0ee720c44737b8da718f335ece426e9d0cc31

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b29afb22fa0e5baa0d8e220100f134c0f399b10c87e35e981c5077ccf5248e90
MD5 bff71146633a7582bfa76c8e53f40a5d
BLAKE2b-256 0cac2b950b76fb7a721ff95894f4d1aed1f0e8c493339886125c80ddf384aae7

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 161.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7ee51f2d2b04dc5eda58e6cb2e2f707b66a4c4beb314e0e51704499428367cfa
MD5 e38c83c179bf4545dac047dae22361fb
BLAKE2b-256 3b1861645d7afbec276053e8262d316facd8272cf8949b492d275e9451e08208

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp39-cp39-win32.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 140.7 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4e26da2b113048b49d942bd24f5f1523610ee1d6ef5ac1bcf8554a5cdd53c679
MD5 77527741e20f9730690f1f56f8572885
BLAKE2b-256 fc62bfa19b82fc34fa410f80693de4bc8f82796802a312c0ece979b93c220b96

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp39-cp39-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 e91c66ce26ef9a36f9207c92d4eb55e8ebf80505e01b0b8ca1ea99c0046f1376
MD5 ae045a30ecab6c0b94e89661ed2384e1
BLAKE2b-256 64e99aa47229026bde7705f6132d9d5adb1f0476e187d14fc8ba1042fc92fe3f

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f7cc46b4b34e3422a014e7537482b54d766bec86f163fc880445431b5be6b26d
MD5 3a1c039633583d63735b8fc615f048e9
BLAKE2b-256 17e3817fdf30398c6784e683cbebe658819350897ca187a676a75923ab24dc51

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp39-cp39-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 139.7 kB
  • Tags: CPython 3.9, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e80312baa3c94cf554c02beccfbd2c6f19a19b3ca8469c28dce5f65bf2556505
MD5 0cb7144c32bde6505b1fbe9cbce6e3e9
BLAKE2b-256 b69a39ec264225ab8b7e68f01fce4e58241720989df9bb8b4bd146a3683fa8fd

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 161.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d3e973565fecc172574e9f7333d44aa9b72f1a7fd79b66ce3f8c1e19d4e063ed
MD5 434788941542898beac06edcde39c4f2
BLAKE2b-256 3c27dca7fb7f2324f2ee25321524bf4a443b6c605dc459942f793b64e73e0439

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp38-cp38-win32.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 140.8 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 902d90fc1e657a936c96bff40af3def0c7fc1a4c79dbc50af5a4ff71b02a8ef9
MD5 554299e5149b694031e0e1bc32b41711
BLAKE2b-256 94f917b63f3913ec2828f60fefbde8f81bed215b2ce26909306b1c37778f1075

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp38-cp38-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 13925cfda8e4ca0f28fa3aec8b35d50e1eefb0a9bd40a66bd552c1bcdc2426f6
MD5 d321ed50b840c424a9e915ef786c385f
BLAKE2b-256 e9fe714342a53230ed6fc597e928edfc6d7d315b5e9e0787a4ad9e395e4a04b5

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pybcf-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 676fe382637df1f9dbcb230a4f816211457baedc9838dd0672e9d456c3a3c832
MD5 3a7e2cfacdb76ed32ec8a32765ac2b1c
BLAKE2b-256 20479d251019a8e310327c74aaa866d0cc50befb6c3ca8894b0cdee02c142d6e

See more details on using hashes here.

File details

Details for the file pybcf-1.0.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

  • Download URL: pybcf-1.0.0-cp38-cp38-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 140.3 kB
  • Tags: CPython 3.8, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pybcf-1.0.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 943efd12063ada7db8d8227de8473fc312e523d9c7295f73f27a00e4661fd799
MD5 cb975311d0224aefbc81c410ea1fd28e
BLAKE2b-256 8e0f710822c1827971de73698edf3f12643530e79b1862c852b4031190aaec2d

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