Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

altar-opentargets-e2g

This binding normalizes the Open Targets Platform enhancer_to_gene dataset (ENCODE-rE2G evidence) into Altar's public VariantGeneLinkSource relation.

The package owns Open Targets schema and provenance semantics, but not storage. Convert source rows to OpenTargetsE2GRow, stream them through OpenTargetsE2GImporter, and query the published generation with OpenTargetsE2GSource. Both operate on Altar's generic VariantGeneLinkStore; no Open Targets × PostgreSQL, Parquet, DuckDB, or service-specific class is required.

from altar.sources import InMemoryVariantGeneLinkStore
from altar_opentargets_e2g import (
    OpenTargetsE2GImportConfig,
    OpenTargetsE2GImporter,
    OpenTargetsE2GSource,
)

store = InMemoryVariantGeneLinkStore()
await OpenTargetsE2GImporter(store).ingest(
    rows,
    OpenTargetsE2GImportConfig(
        data_release="25.12",
        score_threshold=0.6,
        threshold_applied=True,
    ),
    generation_id="sha256-of-the-source-asset",
)
source = OpenTargetsE2GSource(store)

The importer accepts an iterable so operators can read large upstream Parquet datasets in bounded batches. OpenTargetsE2GRow.from_source_mapping() accepts the official camelCase enhancer_to_gene Parquet fields; the binding intentionally does not require a particular Parquet engine. See the Open Targets dataset documentation and rE2G documentation for acquisition and upstream transformations.

The Open Targets pipeline currently filters released rE2G output at score >= 0.6. Pass the threshold and whether it was applied in OpenTargetsE2GImportConfig; Altar retains those semantics in every LinkScore rather than treating the released table as unthresholded raw predictions.

The caller supplies a generation identifier for the exact extraction; partial generations stay hidden, exact replay is idempotent, and publication happens only after the iterable completes. Use VariantGeneLinkQuery.data_releases when a store contains more than one Open Targets release.

The contract is imported from altar; the binding is independently versioned and tested against the public Altar conformance suite.

Metadata

Release files for altar-opentargets-e2g 0.3.0rc1

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

Source distribution (sdist)

Source distribution for altar-opentargets-e2g 0.3.0rc1
File Size Uploaded
altar_opentargets_e2g-0.3.0rc1.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for altar-opentargets-e2g 0.3.0rc1
File Interpreter ABI Platform
altar_opentargets_e2g-0.3.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / altar_opentargets_e2g-0.3.0rc1.tar.gz

Download URL altar_opentargets_e2g-0.3.0rc1.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4dad96d4a3562aafee18c7ea47136328d391e1a6dd99a391e1a01b287f1c7f9d
BLAKE2b-256 checksum
How to use checksums
5b29881d7fc8d78be512231a71632c2e421161dbd6d7e7aace098c59d6b0b46e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / altar_opentargets_e2g-0.3.0rc1-py3-none-any.whl

Download URL altar_opentargets_e2g-0.3.0rc1-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28d1d561074716d2dc5ba458e1b1633c2c53b48132c96adb2859d69208ab338e
BLAKE2b-256 checksum
How to use checksums
72d609c0726a7f67ae4e4aeac23e34ab8d136a199751aff4f355e41c83269581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.3.0rc1 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 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