Three Labels, Three Different Questions
A sequencing read from a single-cell experiment may carry information about a cell, a captured RNA molecule, and the genomic feature from which that molecule originated. These are different kinds of information. A cell barcode answers “which cell or cell partition is associated with this read?” A unique molecular identifier (UMI) answers “which captured molecule, within that cell, does this read represent?” A gene identifier answers “which gene or other annotated feature is associated with the sequence?” Keeping these roles separate is essential: the three labels are not interchangeable, and they do not necessarily come from the same part of the data.
In droplet-based protocols, a barcode sequence is commonly attached during library preparation to identify a droplet or its associated cell, and a UMI may be attached to a captured molecule. In plate-based protocols, a well label can identify the cell’s location; the library may or may not include a cell barcode or UMI, depending on the assay. As covered in the introductory material on droplet encapsulation and plate-based capture, the experimental design determines which identifiers are present and how they are recorded.
The exact read layout is protocol-specific. A sequencer may produce separate reads or indexes for different pieces of information, and the order and length of barcode and UMI sequences vary. Therefore, a string of bases cannot be identified as “the cell barcode” or “the UMI” from its appearance alone. Its position and meaning must be interpreted using the protocol’s documented design. A sample index is another distinct label: it identifies a library or sample in a pooled sequencing run, not necessarily an individual cell.
How the Identifiers Organize the Data
Conceptually, an annotated observation can be associated with a tuple: a cell label, a molecule label within that cell, and a feature label. The labels organize different dimensions. A cell barcode does not say which gene was expressed; a UMI does not identify the cell unless interpreted alongside the cell barcode; and a gene identifier does not, by itself, say which cell contributed the sequence.
This tuple is a useful way to reason about a record, not a guarantee that every assay supplies all three fields or that every possible combination occurs. For instance, full-length plate-based assays may associate reads with a well and a gene without using UMIs. A gene label may also refer to an annotated feature other than a protein-coding gene, depending on the reference annotation. The experimental protocol and annotation define what the labels mean.
Worked Example: Reading the Fields in a Hypothetical Record
Suppose a droplet assay has a documented read layout in which a cell barcode and UMI are extracted from one read, while another read contains the RNA-derived sequence. For illustration, a hypothetical record is summarized as follows:
Cell barcode: ACGTACGT
UMI: TTGCA
RNA-derived sequence: GATCCG...
Associated gene label: Gene-17
The cell barcode ACGTACGT indicates the cell-associated partition specified by this protocol. The UMI TTGCA labels a molecule within that partition. Gene-17 is the feature label associated with the RNA-derived sequence using a reference annotation; it is not established merely by reading the letters ACGTACGT or TTGCA.
If the record is grouped by cell barcode, it is grouped by the cell-associated partition. If it is grouped by the gene label, it is grouped by feature. These are different groupings. The UMI adds a molecule-level label, but the record alone does not license treating every read as a different molecule or explain how repeated UMIs should be handled. That distinction matters when interpreting what the fields label.
Cell Barcodes: Identifying a Cell-Associated Partition
A cell barcode is designed to distinguish cell-associated partitions in a library. In droplet protocols, barcode sequences are often drawn from a predefined set, sometimes called a whitelist. The barcode sequence is then used to associate reads with a partition represented in that set. A barcode is not a biological property of the cell, such as cell type or donor identity; it is a technical label assigned by the assay.
A barcode does not prove that a partition contains exactly one cell. A partition may contain no cell, one cell, or more than one cell, and barcode sequence errors can also complicate interpretation. Those are separate questions from what the barcode labels. Likewise, if the same barcode sequence is used in different libraries, it need not identify the same physical cell across those libraries. Sample or library context may be required to distinguish reused labels.
For plate-based capture, a well position may provide the cell label without a cell barcode being sequenced in the read. A sample index, in turn, can identify which pooled library a read came from. These labels operate at different levels: a well identifies a position within a plate, a cell barcode identifies a cell-associated partition under the protocol, and a sample index identifies a library or sample in a sequencing pool.
Worked Example: Distinguishing a Cell Barcode From a Sample Index
Imagine two hypothetical libraries, Library A and Library B, each with 96 cell-associated partitions. Each library uses cell barcodes from the same set of 96 sequences. A sample index identifies which library was pooled for sequencing. A read has sample index S2 and cell barcode BC-014.
The cell label within the identified library is the pair (S2, BC-014). BC-014 by itself points to a barcode sequence used in each library, so it is not enough to distinguish the library-specific partition. S2 identifies Library B, while BC-014 identifies a partition within that library.
For example, if Library A also has a read with BC-014 but sample index S1, then (S1, BC-014) and (S2, BC-014) refer to different library-specific partitions. It would be incorrect to conclude that the reads came from the same cell just because the cell-barcode sequence matches. This example assumes that the sample indexes are correctly assigned and that the libraries’ identities are retained during processing.
UMIs: Identifying Captured Molecules
A UMI is attached to a captured molecule so that reads carrying the same cell-associated UMI can provide evidence about the same original molecule. Its purpose differs from that of a cell barcode: many distinct molecules can come from one cell, so the cell barcode alone cannot distinguish them. A UMI is interpreted in the context of the cell label and, where relevant, the associated feature. The UMI sequence is a technical tag, not a gene name and not a cell identity.
UMIs have a finite sequence space. If a UMI has length \(k\) and uses four possible bases at each position, the number of possible sequences is \(4^k\), assuming all sequences are allowed. For a five-base UMI, that gives \(4^5 = 1{,}024\) possible sequences. Different molecules can therefore receive the same UMI by chance, especially as the number of molecules grows. Sequencing errors can also make one original tag appear as a different observed sequence. Thus “unique” describes the intended role of the identifier, not a guarantee that every molecule has a globally unique, error-free tag.
Worked Example: Calculating a UMI Sequence Space
Suppose a hypothetical assay uses a five-base UMI and allows any of the four DNA bases at each position. The number of possible UMI sequences is:
The sequence space therefore contains 1,024 possible tags. If 100 molecules are tagged, that does not mean all 100 must have different UMIs: tag assignment can repeat. Under a simplified model where each molecule independently receives one of the 1,024 sequences with equal probability, the expected number of matching pairs is:
This is an expected number of pairs sharing a tag under the stated simplifying assumptions, not a claim that exactly 4.834 pairs will occur in a particular cell. Real protocols may constrain the allowed UMI sequences or have nonuniform tag frequencies. The calculation illustrates why a UMI should not be treated as a mathematically guaranteed unique identifier.
Gene Identifiers: Labels Inferred From a Reference
A gene identifier names a feature in a reference annotation. Depending on the chosen annotation, it may be a stable database-style identifier, a gene symbol, or another feature label. Symbols can be convenient to read, while stable identifiers can reduce ambiguity when names change or are shared. The identifier’s interpretation depends on the reference annotation used; the same sequence may be treated differently under different annotations, especially near feature boundaries or for overlapping features.
In most workflows, the RNA-derived sequence is compared with a reference genome or transcript set, and the associated gene label is determined from that comparison and annotation. The gene identifier is therefore not usually a third sequence tag physically attached to the molecule. It is a computational label assigned from sequence evidence. The detailed process of read alignment and gene assignment is a separate step; here the key distinction is between observed barcode sequences and an inferred feature label.
Worked Example: Separating the Observed Sequence From the Gene Label
Consider a hypothetical record with a cell barcode CCTAAG, a UMI GTC, and an RNA-derived read sequence ATGCC... A reference-based analysis reports gene identifier ENSG00000123456 for that RNA-derived sequence.
The cell barcode CCTAAG identifies the cell-associated partition according to the protocol. The UMI GTC is the molecule tag. ENSG00000123456 is the annotated gene label associated with the sequence; it is not another observed barcode in the read. If a different reference annotation assigns a different label, the label can change even though the recorded barcode and UMI sequences remain the same.
The example assumes the protocol layout is known and the reference-based assignment has already been supplied. It does not specify how the sequence was aligned or resolve ambiguous assignments; those questions require the gene-assignment method and annotation details.
Checks, Alternatives, and Common Errors
A practical check is to ask three separate questions: what physical or computational item does this label identify, where did the label come from, and what context is needed to interpret it? Protocol documentation should establish the read layout, barcode design, and whether UMIs are present. Reference and annotation documentation should establish how gene labels are defined.
The main alternatives are not interchangeable versions of one identifier. Droplet assays commonly use cell barcodes, whereas a plate-based assay may rely on a well identifier. UMI-based assays carry molecule labels; non-UMI assays do not, so their read records do not contain a UMI field to interpret. Gene symbols and stable gene identifiers are alternative naming systems for annotated features, but neither replaces the cell or molecule label.
Warning signs include interpreting a sample index as a cell barcode, treating a gene symbol as a sequence read, assuming every barcode represents one cell, or assuming UMIs cannot repeat. A barcode sequence that is unexpected or differs slightly from a documented barcode may reflect a sequencing error, but the sequence alone does not establish the correct interpretation. The protocol and its processing rules are needed.
This distinction matters because later summaries depend on knowing which dimension a label represents. Confusing the labels can merge different cells, treat repeated sequencing of a molecule as distinct molecules, or assign biological meaning to a technical sequence. The safest practice is to preserve each field separately and record the protocol and reference context that give it meaning.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- A read record contains a sample index, a cell barcode, a UMI, and an RNA-derived sequence. Which field identifies the pooled library, and which identifies a molecule?
- Why is a gene identifier usually not considered a barcode sequence physically attached to the RNA molecule?
- A five-base UMI uses four possible bases at each position. How many possible sequences are there?
- Two libraries reuse the same cell-barcode sequence. What additional context may be needed to distinguish their partitions?
- State one limitation of a cell barcode and one limitation of a UMI.
Solutions. (1) The sample index identifies the pooled library; the UMI labels a captured molecule in its cell context. (2) The gene label is generally inferred by comparing the RNA-derived sequence with a reference and annotation; it is not itself usually a tag read from the molecule. (3) There are \(4^5 = 1{,}024\) possible sequences. (4) The sample or library identity, such as its sample index, may be required alongside the cell-barcode sequence. (5) A cell barcode does not guarantee that a partition contains exactly one cell and can be affected by sequencing errors or reuse across libraries. A UMI has a finite sequence space, so different molecules can share a tag, and sequencing errors can alter observed tags.