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

Built distribution (wheel)

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

Total release size: 20.2 kB

Release files / altar_opentargets_e2g-0.2.0.tar.gz

Download URL altar_opentargets_e2g-0.2.0.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c3f77b5fcf949232a6990c69747b6babbc5c70ed1d774cf909f243ac9275358e
BLAKE2b-256 checksum
How to use checksums
055e0ba02c04856ecf35a75efaa28602df89ec15141bea5307eb26ff8ea3c03d
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.2.0-py3-none-any.whl

Download URL altar_opentargets_e2g-0.2.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a60eabd9454cbc0c8f1c24a4116550934dd4f010a87f09d04d3140a602207846
BLAKE2b-256 checksum
How to use checksums
4c633986260fa1883d78737564eaa4b80a2b5540d05ef77a367dcadfd0f2fc35
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

0.2.1

2 release files

This release

0.2.0 This release

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