gnomon (Python)
Native, in-process Python bindings for the
SauersML/gnomon polygenic-score engine.
The wheel contains the Rust core through PyO3; it does not invoke a command-line
binary.
Install
pip install gnomon-pgs
API
import gnomon
# Compute raw polygenic scores. The result is the input prefix beside which
# the engine writes its score artifacts.
gnomon.score(
"PGS004536,PGS001320",
"/data/cohort/arrays",
reference="/cache/hg38.fa",
build="38",
panel="/cache/1kg_panel.vcf",
inferred_sex="male",
)
# Project genotypes onto a built-in HWE-PCA model.
gnomon.project(
"/data/cohort/arrays",
model="hwe_1kg_hgdp_gsa_v3",
output_manifest="/data/cohort/projection.json",
)
# Write inferred-sex terms or return the first sample's call directly.
gnomon.terms("/data/cohort/arrays", sex=True)
gnomon.infer_sex("/data/cohort/arrays")
# Return a built-in model's variant-key document as JSON.
gnomon.model("hwe_1kg_hgdp_gsa_v3")
Rust failures are raised as Python exceptions by the native extension. Import failure means the wheel or extension build is incomplete; no alternate runtime is selected.
Metadata
Release files for gnomon-pgs 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gnomon_pgs-0.1.4.tar.gz | 8.5 MB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| gnomon_pgs-0.1.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| gnomon_pgs-0.1.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| gnomon_pgs-0.1.4-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| gnomon_pgs-0.1.4-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 47.2 MB
Release files / gnomon_pgs-0.1.4.tar.gz
| Download URL | gnomon_pgs-0.1.4.tar.gz |
|---|---|
| Size | 8.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
faf3ffacc87778aba448d2a6923d529e98d05c83c02a1c9390901837c5ee63f4
|
|
BLAKE2b-256 checksum How to use checksums |
d30a22e30741e3c0056c26c04f16b8cdc701c4de8992ea089a339bc56639b931
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / gnomon_pgs-0.1.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | gnomon_pgs-0.1.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 10.3 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
57f79b93c0564d95ca6064df07189f7dbeac191c08a22d70969b320cefb569cc
|
|
BLAKE2b-256 checksum How to use checksums |
5037d821fdccbc9b072abff7a6179f8e787b9834e888810f2181a2f827c885d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / gnomon_pgs-0.1.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | gnomon_pgs-0.1.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 9.9 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
b9e01322da3a31fd21f78889a0514bc3bcb7e50191c3f4024963787b26a57fdb
|
|
BLAKE2b-256 checksum How to use checksums |
1b35246c9bff00afc6b5a16660cce7b87abbbf32c257b826cd2779ffbdcd2889
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / gnomon_pgs-0.1.4-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | gnomon_pgs-0.1.4-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 9.1 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4a863971e5b14c288b218d61e6f6f1c937aa3b95aa7c4792df3d26621dddc013
|
|
BLAKE2b-256 checksum How to use checksums |
490e2c74c9a63ae1a0a4573a79f3cabb25443db027866b7649421ed4b15553f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / gnomon_pgs-0.1.4-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | gnomon_pgs-0.1.4-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 9.4 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
25f395a89bedb1eace2fd6c2ebe292dc5c01d65734fc10ded775fd4d8a215efd
|
|
BLAKE2b-256 checksum How to use checksums |
f082f82918dc9b3c48bb772afbc76250f63d38727c00b90bbb245ac32b4a119e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|