Skip to main content

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.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gnomon-pgs 0.2.0
File Size Uploaded
gnomon_pgs-0.2.0.tar.gz 1.1 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for gnomon-pgs 0.2.0
File
gnomon_pgs-0.2.0-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.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
gnomon_pgs-0.2.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
gnomon_pgs-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 41.8 MB

Release files / gnomon_pgs-0.2.0.tar.gz

Download URL gnomon_pgs-0.2.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
1220e05e057b3ae95dab467c5ff5c93b24d869b4dd237eedb40769b32b5c4cbc
BLAKE2b-256 checksum
How to use checksums
89fa2f366a79659fc85c2c2424d9b044542a670d61240417bc95be09be45ab1a
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.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL gnomon_pgs-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 10.9 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
69d8331ff4095b71b4cbc9b16aef61da967ed96b5162d1c67c811626270b4c96
BLAKE2b-256 checksum
How to use checksums
c22bc56701e2944572edb2674895e6153cf23bc26ac06748cb8b600d659b96b9
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.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL gnomon_pgs-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 10.4 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
d53d7a367d29c56f46c69fb822744d57fa6464707e4451311d57957c7ba99444
BLAKE2b-256 checksum
How to use checksums
6ab67fa8efbf4346fdc7a55d44d0bb44fca3a30e2bdba348d94f1a3b3dad52b5
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.2.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL gnomon_pgs-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
Size 9.5 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a649c5b0b79b3fcf50a96f29a1521d37f38b2b48792c4db9b83f49a7e66e49fb
BLAKE2b-256 checksum
How to use checksums
9d0aa37dddf3028fe034f773f9c49387642e38a98529e33c500313be0293cd2c
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.2.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL gnomon_pgs-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 10.0 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
22e929fcc16cc98930114f4e341cec5c7d55df416d2918447b40bc59f943e38a
BLAKE2b-256 checksum
How to use checksums
9146a2bb1755019b285550aabc5780283d2f3d7993afae585bad3472322acb9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.2.0 This release

5 release files

0.1.5

5 release files

0.1.4

5 release files

0.1.3

5 release files

0.1.0

6 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page