Skip to main content

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.1.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 altar-opentargets-e2g 0.1.0
File Size Uploaded
altar_opentargets_e2g-0.1.0.tar.gz 10.5 kB Details

Built distribution (wheel)

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

Total release size: 20.3 kB

Release files / altar_opentargets_e2g-0.1.0.tar.gz

Download URL altar_opentargets_e2g-0.1.0.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3a6570f2ea6f55bc9d8d230df8f70484a6a693fd09137c28a5d514deaf2c7e39
BLAKE2b-256 checksum
How to use checksums
43362a8173291ce26c5bb83ea29dabe7a15dd2965d122abff3cfa4c97ebd1b82
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":"macOS","version":null,"id":null,"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.1.0-py3-none-any.whl

Download URL altar_opentargets_e2g-0.1.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
639a0dbc1edd6b206b46f80765a7d1419770c60375bf8957a4e2ec8891998303
BLAKE2b-256 checksum
How to use checksums
3cf617475815e17bc2c7797bce1819936b0896f84f248d7d3dc95944d44c3e30
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":"macOS","version":null,"id":null,"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

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.0 This release

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