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",
emit_components=False,
)
# Project genotypes onto a built-in HWE-PCA model.
gnomon.project(
"/data/cohort/arrays",
build="38",
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.5
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.5.tar.gz | 911.1 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| gnomon_pgs-0.1.5-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.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| gnomon_pgs-0.1.5-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| gnomon_pgs-0.1.5-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 40.4 MB
Release files / gnomon_pgs-0.1.5.tar.gz
| Download URL | gnomon_pgs-0.1.5.tar.gz |
|---|---|
| Size | 911.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7dc2d8feb7f6d75b6de1818b9f5ae00318655591b9f33bed35c0c568be94f43
|
|
BLAKE2b-256 checksum How to use checksums |
fbb481df03ca2a5c3e8a2e65323426ee30f9d9e460c24c12272057f8628403af
|
| 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.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | gnomon_pgs-0.1.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 10.5 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
69e01e59df41dd79509fa0779cd159af486cc75461547bdae3fef2d117abeef2
|
|
BLAKE2b-256 checksum How to use checksums |
41158ae0b8f48e3b4fc380391cad02bcb82c91c72688b688a6f5fb343a894728
|
| 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.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | gnomon_pgs-0.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 10.1 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
1293b37951bfd99ce58072e554fe0f7d89e7412e190c21f838b4983489bea3ae
|
|
BLAKE2b-256 checksum How to use checksums |
6c0a844a1a02c20389e5ecad18c8eb0978f2a2a7b2b172ef4a0c1e18ffe98a2d
|
| 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.5-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | gnomon_pgs-0.1.5-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 9.3 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
faa1506c7dca9d48c9762ebaaeaf0e73c293d248efb9cc1dd8ea3f8667f5845c
|
|
BLAKE2b-256 checksum How to use checksums |
b427672466d3d4a35cfc4e30aaec4ff941dca3635a58d08cf83da9e541fb1a8d
|
| 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.5-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | gnomon_pgs-0.1.5-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 9.7 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
223aa3b8af342c1cfbe3b82a0c8993b2487e6390421b0b7a312844265cd2cc56
|
|
BLAKE2b-256 checksum How to use checksums |
b8c14819c4c4693f5aab7dd571687f5bc446366da2d9dbc6bc5a0e0c5a0d2bc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|