﻿# Enformer outputs: map cropped prediction bins to genomic intervals and tracks

Distinguish Enformer wrapper input length, core model cropping, prediction-bin resolution, species heads, and track metadata before joining genomic outputs.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-enformer-input-crop-bin-track-coordinate-map/
Language: en

## The input interval is larger than the reported domain

An annotation pipeline may send a genomic window to Enformer and align the first output bin with the first input base. That shortcut ignores cropping and output resolution. It can shift every reported association while leaving the output tensor perfectly valid.

The [original Enformer workflow](https://raw.githubusercontent.com/google-deepmind/deepmind-research/master/enformer/README.md) describes the released wrapper input separately from the core model interval. Preserve the exact interface used by the deployment.

## Wrapper and core lengths are different boundaries

The documented released interface accepts 393216 bases, uses the central 196608 bases internally, and predicts the central 114688 bases in bins of 128 bases. The [core implementation](https://raw.githubusercontent.com/google-deepmind/deepmind-research/master/enformer/enformer.py) defines its own sequence and target lengths.

An adapter should not treat those lengths as contradictory alternatives to choose arbitrarily. They describe different boundaries in the workflow. Map the output interval through the actual wrapper crop before assigning genomic coordinates to bins.

## A bin is an interval rather than a single base

Each predicted position summarizes a genomic interval at the model output resolution. Assigning the value only to the interval start can be a display convention, but it should not be mislabeled as independently learned base-level resolution.

Keep source window start, crop offset, bin width, and coordinate convention in the result manifest. The [span-integrity guide](/journal/data-guide-unicode-normalization-span-integrity/) explains why transformed positions need explicit correspondence to original annotations.

## The final axis needs track identities

The model has species-specific output heads. A channel index becomes interpretable only with the matching target metadata. The [published human track table](https://raw.githubusercontent.com/calico/basenji/master/manuscripts/cross2020/targets_human.txt) supplies identifiers and labels for that output domain.

Pin that table with the model artifact. Sorting or filtering metadata rows without applying the same operation to predictions can attach the wrong assay label while preserving the number of channels. A matching row count is not sufficient validation.

## Verify coordinates and channels independently

Inspect a known genomic window, recover its predicted central interval, and verify track identifiers separately from bin positions. Keep orientation transformations explicit when any application step reverses the input.

The [tensor-axis guide](/journal/tensor-axes-batch-sequence-hidden/) helps distinguish these spatial and track axes. Correct alignment supports reproducible computational analysis; it does not establish that a predicted regulatory signal or variant difference is an experimental measurement or clinical finding.
