Tutorials › Multi-Omics Data Integration › Feature IDs, Annotation, and Cross-Layer Mapping

Omics Data Types and Their Structure · Tutorial 14 of 597

Feature IDs, Annotation, and Cross-Layer Mapping

You will learn to read feature annotations as mappings with explicit direction and granularity, quantify mapping coverage, and avoid treating a shared label as proof that two assays measure the same thing.

Beginner 10 min read

What You'll Learn

  • Distinguish stable accessions from human-readable symbols and assay-specific feature IDs.
  • Describe mappings as directional relations and identify one-to-one, one-to-many, many-to-one, and unmapped cases.
  • Calculate annotation coverage and the proportion of uniquely mapped features.
  • Recognize why probes, transcripts, proteins, and metabolite signals may not correspond one-to-one.
  • Choose a mapping policy that preserves ambiguity rather than hiding it through arbitrary label selection.
  • Explain why a cross-layer annotation link does not make measurements equivalent.

Why Feature Labels Need Interpretation

An omics feature table can contain rows labelled with gene symbols, stable accessions, probe IDs, protein accessions, or compound names. These labels are not interchangeable. A label may identify a biological entity, a particular assay feature, or only a candidate interpretation of a measured signal. Before comparing or combining features across assays, establish what each label denotes and how its annotation was produced.

The earlier material on feature granularity distinguishes measurement targets such as variants, transcripts, proteins, and metabolite signals. Annotation adds a layer of correspondence: it proposes which biological entity or entities a feature refers to. That correspondence can be unique, ambiguous, many-to-one, or absent. It also depends on the feature definition and the reference resources used.

Definition: A feature identifier is a label used to distinguish a row or measurement feature within an assay or reference system. An annotation is information linking that feature to a biological entity or description. A mapping is a specified correspondence between features or entities in two identifier systems. A mapping is one-to-one when each feature in either system corresponds to exactly one feature in the other; it is one-to-many or many-to-one when one feature corresponds to multiple features or multiple features correspond to one, respectively. A feature with no recorded correspondence is unmapped.

Identifiers, Symbols, and Labels

A stable identifier, such as an accession from a genome or protein reference system, is intended to identify an entity more consistently than a descriptive name. “Stable” does not mean unchanging under every circumstance: records can be merged, retired, split, or revised as references are updated. An accession should therefore be interpreted together with its namespace and, when relevant, the reference release, genome build, or database version.

Gene symbols are compact and readable, but they are names rather than guaranteed permanent keys. Symbols can have aliases, can change over time, and may be interpreted differently across resources. A symbol is useful for communication, but a reproducible mapping generally needs the identifier namespace and reference version as well as the symbol. Similar-looking names should not be assumed to identify the same entity.

A probe ID identifies an assay feature on a particular platform. It is not itself a gene identifier. A probe can match more than one genomic region or gene, match a region that has been reannotated, or fail to map under a newer reference. Conversely, several probes may target different regions of the same gene. Transcript identifiers add another level of distinction: multiple transcripts can arise from one gene, so a transcript-level feature cannot automatically be treated as a gene-level feature.

Compound labels require similar care. A name may be a synonym, a broad chemical class, or a candidate identification rather than a unique chemical identity. A measured mass-spectrometry feature can reflect an ion, adduct, isotope, or unresolved signal, while a compound database record refers to a chemical entity. One entity may give rise to multiple features, and one feature may be consistent with several candidate compounds.

Key distinction: An assay feature is what the measurement table records; an annotation is an interpretation linking that feature to an entity. A confident-looking label does not change the measurement's original granularity or establish that two assays measured the same quantity.

Representing a Mapping and Checking Its Direction

Let \(A\) be a set of features in one assay and \(B\) a set of entities or features in a reference system. Represent the proposed mapping as a relation \(R\subseteq A\times B\). A pair \((a,b)\in R\) means that feature \(a\) is linked to entity \(b\) under the stated annotation procedure. The mapping is directional in use: asking “which genes do these probes map to?” is different from asking “which probes map to this gene?”

For a feature \(a\in A\), define its mapping degree as the number of distinct targets linked to it:

$$ d(a)=\left|\{b\in B:(a,b)\in R\}\right|. $$

Thus \(d(a)=0\) indicates no recorded target, \(d(a)=1\) indicates a unique target, and \(d(a)>1\) indicates an ambiguous one-to-many mapping in this direction. Many-to-one correspondence is detected by reversing the question and counting how many source features link to the same target. A mapping is bijective only if every feature on both sides has exactly one partner and no feature is left unmatched. In practice, many annotation tables do not meet those conditions.

Two useful summaries are the mapping coverage, the fraction of source features with at least one target, and the unique-mapping fraction, the fraction with exactly one target. With \(N=|A|\), these are:

$$ \text{Coverage}=\frac{\#\{a\in A:d(a)>0\}}{N}, \qquad \text{Unique-mapping fraction}=\frac{\#\{a\in A:d(a)=1\}}{N}. $$

These summaries answer different questions. A feature with three candidate targets contributes to coverage but not to the unique-mapping fraction. Report the denominator and mapping direction, since a percentage without them can be misleading.

Worked Example: Stable IDs and Gene Symbols

Suppose a hypothetical RNA assay has four stable feature IDs. A versioned annotation table gives the following links to gene symbols: ID-A to ALFA, ID-B to BETA, ID-C to BETA, and no listed symbol for ID-D. Treat these labels as fictional.

Assay featureAnnotated symbol
ID-AALFA
ID-BBETA
ID-CBETA
ID-DUnmapped

There are \(N=4\) source features, and three have at least one recorded target. The coverage is \(3/4=0.75\), or 75%. Each of those three mapped features has one listed symbol, so the unique-mapping fraction is also \(3/4=75\%\). However, the mapping is not one-to-one in both directions: ID-B and ID-C both map to BETA. From the reverse perspective, BETA has two source features.

The table supports the statement that two assay features are annotated to the same symbol. It does not establish that the two rows are duplicate measurements or that they should be added or averaged. Their stable IDs may denote distinct features, and the table alone does not supply a valid aggregation rule.

Ambiguity, Incomplete Annotation, and Aggregation

Ambiguity and missing links have different meanings. An ambiguous mapping records more than one candidate target for a feature. An unmapped feature has no target recorded in the annotation being used. It may be unmapped because the feature is novel, the reference is incomplete, the assay feature is low-confidence, or the identifier namespace or version does not match. “Unmapped” is therefore a statement about the available annotation, not proof that the feature has no biological meaning.

Many-to-one mappings also need careful interpretation. Several transcript features can belong to one gene; several probes can target one gene; and multiple measured signals can be associated with one compound. These relationships do not automatically justify collapsing rows. Aggregation changes the unit represented by the table and can lose feature-specific variation. Before aggregation, one needs a scientific reason for combining the features and a rule appropriate to the measurement scale. For example, summing raw counts is not interchangeable with averaging normalized intensities, and neither operation resolves an ambiguous assignment by itself.

A cross-layer link can be even less direct. A gene may encode a protein, but a gene-level RNA measurement and a protein abundance measurement are different quantities with different assay behavior. A metabolite may be linked to a pathway or enzyme without being a direct counterpart of a gene or protein feature. Annotation can support a biological interpretation or define candidate correspondences; it does not establish equivalence, causal direction, or matched measurement units.

Worked Example: Probe IDs With One Ambiguous Target

Consider five hypothetical probe IDs annotated against a reference gene set. P11 maps to G1, P12 maps to G1, P13 maps to both G2 and G3, P14 maps to G4, and P15 has no recorded target. The annotation direction is from probes to genes.

Four probes have at least one target, so coverage is \(4/5=0.80\), or 80%. Three probes have exactly one target—P11, P12, and P14—so the unique-mapping fraction is \(3/5=0.60\), or 60%. P13 is covered but ambiguous; P15 is unmapped. Counting mapping pairs gives five links: one each from P11, P12, and P14, plus two from P13. This pair count is not the number of probes or the number of distinct genes.

G1 has two probes mapping to it, so the reverse relation is many-to-one. If a hypothetical sample has normalized probe intensities of 8 and 12 units for P11 and P12, their arithmetic mean is \((8+12)/2=10\) intensity units. That calculation is valid as an arithmetic mean, but it is not automatically a valid gene-level estimate. Such a summary requires a justified rule for combining these probe measurements. P13 must not be assigned to G2 merely because one target is preferred without an explicit, defensible selection criterion.

A Practical Annotation Audit

Before using mapped features in an analysis, inspect the annotation as data rather than treating it as a finished lookup. A concise audit makes the assumptions visible and helps identify errors that could otherwise be mistaken for biological results.

1
Record identifier context.
Write down the source and target namespaces, assay or platform, reference release, and any relevant genome build. Check that identifiers are being compared in the intended namespace.
2
Count targets per source feature.
Separate unmapped features, uniquely mapped features, and features with multiple targets. Check the reverse direction too, since several source features can share one target.
3
Inspect the labels and evidence.
Look for aliases, retired identifiers, duplicate rows, candidate compound names, and annotation confidence fields. Do not treat a text match as sufficient evidence of identity.
4
State the analysis policy.
Specify whether ambiguous features are retained as candidates, excluded from a particular analysis, or handled using an explicit rule. Record any aggregation rule and the resulting feature unit.

This audit assumes that the annotation file is available in a form that identifies its reference context and that the analysis preserves the original feature IDs. If either assumption fails, mapping rates can reflect inconsistent identifier handling rather than true annotation gaps. Keep the original IDs and annotation fields so a mapping decision can be revisited.

Worked Example: Compound Labels Across Metabolite Features

Suppose six hypothetical metabolite features are linked to compound records as follows: F1 to C-A, F2 to C-A, F3 to both C-B and C-C, F4 to C-D, F5 to no record, and F6 to C-E. Assume each listed link is part of the current annotation, not a confirmed chemical identification.

Five of the six source features have at least one record, giving coverage \(5/6=0.8333\), or 83.3%. Four have exactly one record—F1, F2, F4, and F6—so the unique-mapping fraction is \(4/6=0.6667\), or 66.7%. F3 is ambiguous, and F5 is unmapped. C-A is linked to two features, so the reverse mapping is many-to-one.

It would be incorrect to conclude that F1 and F2 are duplicate measurements of one chemical solely because both map to C-A. They could represent different ions or other distinct assay signals associated with that candidate compound. Likewise, choosing C-B rather than C-C for F3 requires evidence beyond the fact that both labels appear in the annotation. The mapping table records candidate correspondence, not a resolved chemical identity.

Alternatives, Diagnostics, and Common Pitfalls

There is no single mapping policy appropriate for every analysis. Retaining all candidate links preserves uncertainty but can make a feature contribute to multiple targets. Restricting an analysis to uniquely mapped features is straightforward to describe, but can discard substantial data and may disproportionately exclude particular feature types. Selecting one target per feature can simplify a table, but is defensible only when a prespecified evidence-based rule supports the selection. Aggregating multiple features to a shared target changes the measurement unit and requires a justified aggregation method.

ApproachWhat it preservesMain caution
Keep all mappingsAll recorded candidate correspondencesA feature may contribute to multiple targets; uncertainty remains explicit
Use unique mappings onlyA simple, unambiguous source-to-target relationUnmapped and ambiguous features are excluded; coverage may fall
Select one targetA single target label per retained featureRequires a stated and defensible selection rule
Aggregate featuresA target-level summary under a specified ruleCan hide feature differences and may be unsuitable for the measurement scale

Warning signs include unexpectedly low coverage, a large share of features with multiple targets, many duplicate target labels, abrupt changes in mapping rates between annotation releases, and identifiers that fail to match the stated namespace. Compare mapping summaries before and after any cleaning step. A surprising result may indicate a version mismatch or parsing error rather than an unusual biological pattern. These diagnostics concern annotation; they are distinct from diagnosing missing measured values in the feature table.

Common mistake: “Both rows have the same gene symbol, so they are the same feature and can be collapsed.” This reasoning confuses a shared annotation target with feature identity. Two distinct probes or transcripts can map to one gene while measuring different regions or molecular quantities. Keep their feature IDs distinct unless a scientifically justified procedure defines a target-level summary.

Key takeaway: Interpret every mapping with its direction, identifier namespace, reference context, and feature granularity. Report how much is uniquely mapped, ambiguous, and unmapped; do not let a shared label silently decide that measurements are equivalent.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. Five assay features have mapping degrees \(1, 1, 2, 0, 1\). What are their coverage and unique-mapping fraction?
  2. Two probe IDs map to the same gene. Does this alone show that their measurements should be averaged? Why or why not?
  3. Explain the difference between an ambiguous mapping and an unmapped feature.
  4. A compound label appears on two metabolite feature rows. Name one reason the rows may still represent distinct assay signals.
  5. Why should a gene symbol mapping record identify its namespace or reference context?

Solutions. (1) Four of five features have at least one target, so coverage is \(4/5=80\%\). Three of five have exactly one target, so the unique-mapping fraction is \(3/5=60\%\). (2) No. The probes may target different regions or have different measurement behavior; averaging needs a justified rule and changes the feature-level representation. (3) An ambiguous feature has multiple recorded candidate targets, whereas an unmapped feature has none recorded in the annotation being used. (4) They may represent different ions, adducts, isotopes, or other distinct signals associated with the same candidate compound. (5) Symbols and identifier records can change or be interpreted differently across namespaces and releases, so context is needed to make the correspondence reproducible.

Clinical Biostats