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.3
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.3.tar.gz | 8.5 MB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| gnomon_pgs-0.1.3-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.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| gnomon_pgs-0.1.3-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| gnomon_pgs-0.1.3-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.3.tar.gz
| Download URL | gnomon_pgs-0.1.3.tar.gz |
|---|---|
| Size | 8.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71add1297c73c79fbb1437ca1e0c2e2ca1b6201620962adb942fe5958b6dec24
|
|
BLAKE2b-256 checksum How to use checksums |
d07449dd1e8e1aff8c5dc538d2cb8ae8685b308ff80f6d906ec52c7c285786a9
|
| 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.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | gnomon_pgs-0.1.3-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 |
8db4c57dca77c8a992b4343fa55d667a43da9ecb4c298ef456ad16d972458089
|
|
BLAKE2b-256 checksum How to use checksums |
55133aab18c5538b24e7e9330cec91ed79d2c364860c46018c18c74883a8d32c
|
| 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.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | gnomon_pgs-0.1.3-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 |
6bb2f7aaea402cae2ab1f8ec5a8e07c35731637815c7fc0b2485fb8245feb417
|
|
BLAKE2b-256 checksum How to use checksums |
0e3dd485f8855b25a71f67200dbe2a77d2742465ded7c57ad81f698375acaac1
|
| 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.3-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | gnomon_pgs-0.1.3-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 |
2248f33ff8674a8248f2108d3e41c94c4fc5a77a04d0dd6f0c97ea843672cd77
|
|
BLAKE2b-256 checksum How to use checksums |
d3489bf5e418e4371e8508d231949b0c1c7a7a937b845aa0307c9c4efea89e93
|
| 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.3-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | gnomon_pgs-0.1.3-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 |
93f9f931e8c93f41a38f99b47185b0747d95672af0ddbfd6c8da382f96fba581
|
|
BLAKE2b-256 checksum How to use checksums |
9262669bef5a0ff9ec1e532c58e24d98569503c3fa37d39610cc87eec0fe15ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|