Genotype IO tools for Python
Project description
genoio
genoio reads VCF/BCF, PLINK1, PLINK2, and BGEN genotype sources into Python
matrices. The public API is Python; the file readers are Rust. This pairing
keeps the interface simple while moving parsing and matrix construction into
compiled, efficient code.
It is built for downstream genetics tools that need stable matrix contracts: samples on rows, variants on columns, and metadata aligned to returned matrices, blocks, or regions.
Install
pip install git+https://github.com/mancusolab/genoio.git
From a local checkout:
pip install .
Documentation
For complete documentation and examples, see the documentation site.
Quick Example
import genoio
ds = genoio.pfile("data/chr22_hg38")
samples = ds.samples()
y = load_phenotype_vector(samples["iid"])
C = load_covariates(samples["iid"])
for X, variants in ds.iter_blocks(10_000, return_variants=True):
# X has shape (samples, variants_in_this_block).
# `y` and `C` must be aligned to the rows described by `samples`.
association_scan(X, y, C, variants=variants)
Use read(...) for one matrix, iter_blocks(...) for streaming scans, and
iter_regions(...) for interval-based workflows.
License
MIT. See LICENSE.
Notes
genoio was developed by members of the Mancuso Lab with assistance from Codex,
following the practices described in the
scientific-software-playbook
and coding-skills repositories.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file genoio-0.1.0.tar.gz.
File metadata
- Download URL: genoio-0.1.0.tar.gz
- Upload date:
- Size: 122.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c36fd6d13dfdc82c15774cab6b1f86377debf88837e34ffc3bcbaa267f5efaa9
|
|
| MD5 |
aa78b2da3a648f40f64a65dcde2d8780
|
|
| BLAKE2b-256 |
110d36aad93971e9502fc98888ea28c4075c461e4252f4fa220a2243fa2fd9d3
|
Provenance
The following attestation bundles were made for genoio-0.1.0.tar.gz:
Publisher:
release.yml on mancusolab/genoio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genoio-0.1.0.tar.gz -
Subject digest:
c36fd6d13dfdc82c15774cab6b1f86377debf88837e34ffc3bcbaa267f5efaa9 - Sigstore transparency entry: 1853900147
- Sigstore integration time:
-
Permalink:
mancusolab/genoio@b3111c247d749af45167b2734ff17a973b17e815 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mancusolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3111c247d749af45167b2734ff17a973b17e815 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file genoio-0.1.0-cp314-cp314-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: genoio-0.1.0-cp314-cp314-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.14, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cbed8e96f20035da09dafc14ad79937006842ae8800069a6c3eff75e23cbfd2
|
|
| MD5 |
6a363d9e503e4a603d1026a3306069f6
|
|
| BLAKE2b-256 |
6ed3e2fa1297e7a880aac14f1c06065875f1205d46db722017438d28a1e6f295
|
Provenance
The following attestation bundles were made for genoio-0.1.0-cp314-cp314-manylinux_2_34_x86_64.whl:
Publisher:
release.yml on mancusolab/genoio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genoio-0.1.0-cp314-cp314-manylinux_2_34_x86_64.whl -
Subject digest:
4cbed8e96f20035da09dafc14ad79937006842ae8800069a6c3eff75e23cbfd2 - Sigstore transparency entry: 1853900197
- Sigstore integration time:
-
Permalink:
mancusolab/genoio@b3111c247d749af45167b2734ff17a973b17e815 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mancusolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3111c247d749af45167b2734ff17a973b17e815 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file genoio-0.1.0-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: genoio-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5bca588621e305601fa5654606422101cd43e0cd99932ded00b3ee1ef2ddd18
|
|
| MD5 |
c2ba196e02154a542c70d4db3a0f2026
|
|
| BLAKE2b-256 |
c1248c87035c1917b17ce066a62d98c86209ea1afeab1a33184067e10632a214
|
Provenance
The following attestation bundles were made for genoio-0.1.0-cp314-cp314-macosx_11_0_arm64.whl:
Publisher:
release.yml on mancusolab/genoio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genoio-0.1.0-cp314-cp314-macosx_11_0_arm64.whl -
Subject digest:
a5bca588621e305601fa5654606422101cd43e0cd99932ded00b3ee1ef2ddd18 - Sigstore transparency entry: 1853900227
- Sigstore integration time:
-
Permalink:
mancusolab/genoio@b3111c247d749af45167b2734ff17a973b17e815 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mancusolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3111c247d749af45167b2734ff17a973b17e815 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file genoio-0.1.0-cp313-cp313-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: genoio-0.1.0-cp313-cp313-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d8783e615e5fcb538b2ac13c20e0800ff242d35ec75f293d3d29b35cfb90168
|
|
| MD5 |
1cfb4dc6e12bc6b79600a6132e2dd9c4
|
|
| BLAKE2b-256 |
1275d25583a4148f13467ea18807211e74d8c9ddd35879c7183f31d981a735c0
|
Provenance
The following attestation bundles were made for genoio-0.1.0-cp313-cp313-manylinux_2_34_x86_64.whl:
Publisher:
release.yml on mancusolab/genoio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genoio-0.1.0-cp313-cp313-manylinux_2_34_x86_64.whl -
Subject digest:
2d8783e615e5fcb538b2ac13c20e0800ff242d35ec75f293d3d29b35cfb90168 - Sigstore transparency entry: 1853900171
- Sigstore integration time:
-
Permalink:
mancusolab/genoio@b3111c247d749af45167b2734ff17a973b17e815 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mancusolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3111c247d749af45167b2734ff17a973b17e815 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file genoio-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: genoio-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
762f56ec03d6b4212b3596d647178c3c51f9dfb0cbcade3eb5b5f01e369733a3
|
|
| MD5 |
2b7f611e3f69effbfe93341eacda604c
|
|
| BLAKE2b-256 |
7adefcd040422d1abcba95849052af365ca5bc747a6286dd7469ba3c3cb5ebbd
|
Provenance
The following attestation bundles were made for genoio-0.1.0-cp313-cp313-macosx_11_0_arm64.whl:
Publisher:
release.yml on mancusolab/genoio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genoio-0.1.0-cp313-cp313-macosx_11_0_arm64.whl -
Subject digest:
762f56ec03d6b4212b3596d647178c3c51f9dfb0cbcade3eb5b5f01e369733a3 - Sigstore transparency entry: 1853900350
- Sigstore integration time:
-
Permalink:
mancusolab/genoio@b3111c247d749af45167b2734ff17a973b17e815 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mancusolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3111c247d749af45167b2734ff17a973b17e815 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file genoio-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: genoio-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0957369e863bb95b08f1b4eb0d65e25adff74451dd299090daa8429cb8b524aa
|
|
| MD5 |
1190e7af3f8aebd2634341695d1773bd
|
|
| BLAKE2b-256 |
803d038c9253a77baf9e9f11d5b51070e68418ee29905dc0a78d5aa5d3e7bb01
|
Provenance
The following attestation bundles were made for genoio-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl:
Publisher:
release.yml on mancusolab/genoio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genoio-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl -
Subject digest:
0957369e863bb95b08f1b4eb0d65e25adff74451dd299090daa8429cb8b524aa - Sigstore transparency entry: 1853900214
- Sigstore integration time:
-
Permalink:
mancusolab/genoio@b3111c247d749af45167b2734ff17a973b17e815 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mancusolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3111c247d749af45167b2734ff17a973b17e815 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file genoio-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: genoio-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51c3203a73b7ac6504399bb64fd97dedc49f172d30e2445cb738ae83d00d446f
|
|
| MD5 |
2e87cff9f93181f62de922d1876dc97b
|
|
| BLAKE2b-256 |
449cfbc007373ec9524d926c9e629070eb38b7282864cb915d78316a9e8fa9d1
|
Provenance
The following attestation bundles were made for genoio-0.1.0-cp312-cp312-macosx_11_0_arm64.whl:
Publisher:
release.yml on mancusolab/genoio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genoio-0.1.0-cp312-cp312-macosx_11_0_arm64.whl -
Subject digest:
51c3203a73b7ac6504399bb64fd97dedc49f172d30e2445cb738ae83d00d446f - Sigstore transparency entry: 1853900247
- Sigstore integration time:
-
Permalink:
mancusolab/genoio@b3111c247d749af45167b2734ff17a973b17e815 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mancusolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3111c247d749af45167b2734ff17a973b17e815 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file genoio-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: genoio-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9e5bbdc77ef48b73c228a6676f6d192a068e4394de8c3058365dc7f6aea6e81
|
|
| MD5 |
fdc16c277053020cb65fe3e7b8d09f3c
|
|
| BLAKE2b-256 |
6578829cea96938a0a9621aabe44176d2fd0a425a9457b3fab55afdc979c8cde
|
Provenance
The following attestation bundles were made for genoio-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl:
Publisher:
release.yml on mancusolab/genoio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genoio-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl -
Subject digest:
f9e5bbdc77ef48b73c228a6676f6d192a068e4394de8c3058365dc7f6aea6e81 - Sigstore transparency entry: 1853900273
- Sigstore integration time:
-
Permalink:
mancusolab/genoio@b3111c247d749af45167b2734ff17a973b17e815 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mancusolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3111c247d749af45167b2734ff17a973b17e815 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file genoio-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: genoio-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed7976661f0961f68882fb207bc315b19953b113c4a6dc06d073a1e7971d2e81
|
|
| MD5 |
65d2da614c9c5bc1df25861b2aeee184
|
|
| BLAKE2b-256 |
c8c507c40fff98857f80403f23f13cceb6768fc3e1e3c431a6519200244c0996
|
Provenance
The following attestation bundles were made for genoio-0.1.0-cp311-cp311-macosx_11_0_arm64.whl:
Publisher:
release.yml on mancusolab/genoio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genoio-0.1.0-cp311-cp311-macosx_11_0_arm64.whl -
Subject digest:
ed7976661f0961f68882fb207bc315b19953b113c4a6dc06d073a1e7971d2e81 - Sigstore transparency entry: 1853900313
- Sigstore integration time:
-
Permalink:
mancusolab/genoio@b3111c247d749af45167b2734ff17a973b17e815 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mancusolab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3111c247d749af45167b2734ff17a973b17e815 -
Trigger Event:
workflow_dispatch
-
Statement type: