678 Reference Selection

A variant is a difference from a reference. This subsection measures what the reference contributes.

678.0.1 Mapping is a threshold, not an observation

Whether a read maps to a reference is decided by seed matching: \(K\)-mers are extracted from the read and looked up in the reference index, and the read is accepted if a sufficient fraction match. Applying this to the same reads and the reference they were generated from:

\[ \begin {array}{rrrrrrr} K & \text {error-free } K\text {-mer prob} & f{=}0.1 & f{=}0.3 & f{=}0.5 & f{=}0.7 & f{=}0.9 \\ \hline 8 & 0.663 & & & 100.0\% & & \\ 11 & 0.569 & 100.0\% & 100.0\% & 99.1\% & 19.0\% & 0.1\% \\ 14 & 0.488 & 100.0\% & 99.9\% & 82.2\% & 2.6\% & 0.0\% \\ 17 & 0.418 & 100.0\% & 99.2\% & 41.8\% & 0.8\% & 0.0\% \\ 21 & 0.341 & 100.0\% & 92.4\% & 13.6\% & 0.4\% & 0.0\% \\ 25 & 0.277 & & & 3.1\% & & \\ 31 & 0.204 & & & 1.1\% & & \\ \end {array} \]

The reads were drawn from this exact sequence. At \(K=8\) all of them map; at \(K=31\), \(1.1\%\) do; at \(K=11\) with \(f=0.9\), one in a thousand. Two parameters carry the mapping rate from \(0\) to \(100\%\) with the data and the reference both held fixed.

The value of \(K\) is not free of consequence elsewhere: short seeds match by chance and long seeds are destroyed by errors. But no property of the data selects a value, and the reported quantity — what fraction of reads mapped — is a statement about that selection.

678.0.2 The reference decides what a variant is

Fixing \(K=11\), \(f=0.3\) and varying the reference:

\[ \begin {array}{lrr} \text {reference} & \text {length} & \text {reads mapped} \\ \hline \lambda \ (\text {NC\_001416}) & 48\,502 & 100.0\% \\ \text {T7} \ (\text {NC\_001604}) & 39\,937 & 0.0\% \\ \text {M13} \ (\text {NC\_003287}) & 6407 & 0.0\% \\ \phi \text {X174} \ (\text {NC\_001422}) & 5386 & 0.0\% \\ \end {array} \]
Against three of the four references no variant is definable at all, because no read maps. The same reads, unchanged.
678.0.3 The count of variants is the count of edits to the reference

Taking the true sequence and substituting \(n\) bases at random produces a reference differing from the sample at exactly \(n\) positions — a controlled analogue of a reference version. Calling variants against each:

\[ \begin {array}{lrrr} \text {version} & \text {substitutions} & \text {reads mapped} & \text {variants called} \\ \hline \text {v0} & 0 & 100.0\% & 0 \\ \text {v50} & 50 & 100.0\% & 50 \\ \text {v200} & 200 & 100.0\% & 200 \\ \text {v1000} & 1000 & 100.0\% & 1000 \\ \text {v5000} & 5000 & 39.5\% & 5000 \\ \text {v20000} & 20\,000 & 0.0\% & 20\,000 \\ \text {v48502} & 48\,502 & 0.0\% & 48\,502 \\ \end {array} \]

The number of variants equals the number of edits made to the reference, identically, by construction. The sample never changed. A statement of the form “this individual differs from the reference at \(n\) positions” reports a property of the reference version.

The mapping rate degrades as the edits accumulate, and the rate at which it degrades is set by \(K\) and \(f\) from the previous table. At \(K=11\), \(f=0.3\) the reference tolerates \(1000\) substitutions (\(2.1\%\) of the genome) with no loss of mapping; at \(K=21\), \(f=0.5\) it would not.

\[ \begin {array}{ll} \text {assembly} & \text {144 standard settings} \Rightarrow \mathrm {N}50\ 24\text {--}47\,896, \ \text {size } 0.01\text {--}178\times \\ & \text {every target reachable; four quality statistics select}\\ & \text {an assembly } 1.99\times \text { the genome with accuracy } 1.000 \\[4pt] \text {mapping} & \text {same reads, same reference: } 0\text {--}100\% \text { mapped, by } (K,f) \\[4pt] \text {variants} & \text {count} = \text {edits to the reference, identically} \\ \end {array} \]

The reads are fixed throughout. The assembly, the mapping rate and the variant list are each set by a parameter applied afterwards, and in the assembly case the parameter that would reveal the error — total length — is not among those normally reported.

Table 1182: Information chain from biological specimen to FASTQ in Illumina sequencing-by-synthesis. Each layer is a physical or digital entity; the transition to the next layer irreversibly discards information and/or introduces systematic artifacts.
Layer Entity

Information retained

Transition: information lost / artifacts introduced

L0 Biological specimen (DNA in cells/tissue)

Methylation, 3D chromatin structure, cell-to-cell heterogeneity, long-range molecular linkage

Extraction: cellular context and structural organization lost

L1 Extracted genomic DNA

Long, intact molecules

Fragmentation (sonication/enzymatic, to \(\sim \) hundreds of bp): long-range linkage (haplotype phase, structural-variant breakpoints) lost; fragmentation bias introduced

L2 Sequencing library

Fragments ligated to adapters and indices

PCR amplification: duplicates, GC bias, and polymerase errors (spurious variants) introduced; methylation lost unless bisulfite/enzymatic conversion is applied

L3 Flow-cell clusters

Clonal amplicons (bridge amplification/ExAmp)

Polyclonal clusters and index hopping introduced

L4 Raw images (TIFF)

Per-cycle fluorescence images; the last record of what the instrument physically observed

Discarded by default after on-instrument processing

L5 Cluster intensities (CIF)

Per-cluster, per-channel intensity values

Discarded by default; crosstalk and phasing/prephasing correction models fixed at this step

L6 Base calls (BCL)

Per-cycle, per-tile base calls with quality scores

Continuous intensities collapsed to discrete bases; precision lost through Q-score binning; two-color chemistry fixes “no signal” as G (poly-G artifacts); clusters failing the chastity filter flagged (non-PF)

L7 FASTQ

Assembled reads, demultiplexed by index

BCL Convert parameters (index mismatch tolerance, adapter trimming, assignment of undetermined reads) permanently encoded

678.1 Shaking the Chain from the BCL Layer

We applied 200 alternative processing chains to a single public BCL run folder (10x Genomics cellranger-tiny-bcl-1.2.0; 2,136,539 clusters, 132 cycles: read 1 of 26, index of 8, read 2 of 98 cycles; 100% passing filter; 0.51% no-call bytes). Each chain varied choices that are fixed between BCL and FASTQ: use of the pass-filter flag, quality binning (none, 8-level, 4-level as in CBCL, 2-level), the quality threshold below which a call is set to no-call, index length and register, i7 orientation, allowed index mismatches, the number of samples in a sample sheet built from the most frequent index sequences, and simulated index hopping. The reference chain used the four most frequent indices, which left 55.6% of clusters undetermined.

Reads versus membership. Across chains, read 1 was identical to the reference in a median of 100% of clusters (minimum 93.4%, reached only when the no-call threshold was raised to Q20). Sample membership was far less stable: the fraction of clusters assigned to the same sample as in the reference ranged from 29.1% to 100%, and the undetermined fraction from 29.2% to 100%.

Which choice matters. Varying one choice at a time from the reference, the largest fraction of clusters moved to a different sample was produced by index length or register (44.5%; a one-cycle shift left every cluster undetermined), i7 orientation (44.4%), and sample-sheet size (26.2%). Index hopping at up to 2% moved 1.3%, the no-call threshold 0.8%, and mismatch tolerance 0.3%. Pass-filter use and quality binning moved none; in this run every cluster passed filter and demultiplexing did not consult quality, so these choices were not exposed rather than shown to be inert.

Interpretation. From the BCL layer onward, the sequence of symbols in a read is nearly fixed, whereas the assignment of that read to a sample is determined largely by bookkeeping choices—which cycles constitute the index, in which orientation, and against which list—none of which are recorded in the resulting FASTQ.

pict

Remark 678.1 (The floor that Illumina distributes). The lowest layer that Illumina makes available is the base-call layer (BCL/CBCL). Public demonstration data are distributed either as projects, which begin at FASTQ or later analysis outputs, or as run folders. In the run folders we examined—a HiSeq run (cellranger-tiny-bcl-1.2.0) and a NovaSeq 6000 run (220329_A00519_1282_BH75CVDRX2)—no images (L4) were present, and intensities (L5) survived only as per-tile summaries that carried no information beyond an intensity-free cycle mean (Section 678.2); the NovaSeq run shipped configuration and InterOp files without base calls. The on-instrument configuration shows that images are retained, if at all, only as reduced thumbnails of selected tiles in the first cycle (Table 1183). What is distributed as “raw” Illumina data is therefore already the output of the chain L0–L6, and BCL is the floor of what is provided, not of what exists.

Table 1183: Parameters fixed by on-instrument software (RTA3) between image acquisition (L4) and base calls (L6), read from the configuration shipped with a public NovaSeq 6000 run (220329_A00519_1282_BH75CVDRX2). None of these values is recorded in the resulting BCL or FASTQ files; files they reference (fiducial template, quality table) remain on the instrument and are not distributed.
Stage Setting

Fixed value and consequence

Imaging Channels

Two (RED, GREEN); four states encoded by two intensities

Image size

\(3200\times 3607\) px per tile; 78 tiles \(\times \) 2 surfaces \(\times \) 2 swaths \(\times \) 2 lanes

Image retention

Thumbnails only for tiles matching ._...3, read-cycle 1, area reduced \(250\times \); none distributed

Registration Template

Patterned hexagonal lattice, pitch 1.8087 px; fiducial image on instrument only

Threshold

0.1

Distortion

All ten coefficients set to 0

Extraction Kernel

\(3\times 3\) weights \((-0.1,-1.2,-0.1;\,-0.9,5.6,-0.9;\,-0.1,-1.2,-0.1)\), summing to 1: cluster intensity is a fixed weighted integral over pixels

Box size

1.5 px

Normalization Spatial bins

\(256\times 200\) px, 1,000 samples per bin, rescaled between the 10th and 90th intensity percentiles

Phasing Corrector

PhasingCorrectorSimd; estimates written only as summaries

Base calling Caller

BaseCallerTwoChannelSimdV11Simd; empty-well check on

Quality

Table NovaSeq.txt, stored on instrument, not distributed

Filtering Scope

Per tile

Alignment

Only tiles matching ._...3; alignments not saved

“Raw” public data are not raw. Publicly distributed Illumina runs, including instrument demonstration data, begin at the base-call layer (L6): images (L4) are discarded on the instrument, and cluster intensities (L5) survive only as per-tile, per-cycle summaries in InterOp files. Every cluster in such data has therefore already passed through image registration, intensity extraction, crosstalk and phasing correction, base calling, quality scoring, and pass-filter flagging under parameters chosen by the instrument software. What is conventionally called raw sequencing data is the output of this chain, not its input.

 [U] unrecorded parameter   [I] integral   [M] modelling assumption   [*] shaken in this work

 +------------------------------------------------------------------+
 | library prep: fragmentation, adapter ligation, PCR               |
 | [U] fragment length, adapter dimers, PCR duplicates  [*]         |
 +--------------------------------+---------------------------------+
                                  |
 +--------------------------------v---------------------------------+
 | flow cell: bridge / ExAmp amplification -> clusters              |
 | [U] cluster size, density, polyclonality (mixed templates) [*]   |
 +--------------------------------+---------------------------------+
                                  |
 +--------------------------------v---------------------------------+
 | cycle k: add reversible-terminator nucleotides with dyes         |
 | [U] incorporation failure -> phasing, early -> prephasing  [*]   |
 | [M] dye-to-letter assignment: 4-channel / 2-channel / 1-channel  |
 |     2-channel: A = red+green, C = red, T = green, G = DARK   [*] |
 +--------------------------------+---------------------------------+
                                  |
 +--------------------------------v---------------------------------+
 | imaging: laser + filters -> 1, 2 or 4 images per cycle           |
 | [U] focus, exposure, channel cross-talk, dye decay per cycle [*] |
 +--------------------------------+---------------------------------+
                                  |
 +--------------------------------v---------------------------------+
 | image analysis: registration, template generation                |
 | [I] cluster intensity = integral over pixels of the cluster      |
 | [U] background, neighbour overlap                            [*] |
 +--------------------------------+---------------------------------+
                                  |
 +--------------------------------v---------------------------------+
 | base calling (RTA): cross-talk correction, phasing correction    |
 | [M] assumed cross-talk matrix, assumed phasing rates         [*] |
 | [M] 2-channel: letters by thresholds in the red-green plane  [*] |
 +--------------------------------+---------------------------------+
                                  |
 +--------------------------------v---------------------------------+
 | quality score Q = f(margin, cycle, ...)  [M] calibration table   |
 | filter: chastity / purity threshold                          [*] |
 +--------------------------------+---------------------------------+
                                  |
 +--------------------------------v---------------------------------+
 | BCL / CBCL -> FASTQ: letters + Q      (intensities not stored)   |
 +------------------------------------------------------------------+

Figure 898: The verbatim chain for Illumina sequencing by synthesis. Unlike capillary sequencing, position is a cycle index rather than a migration time, cluster intensity is an integral over image pixels, and in two-channel chemistry one letter is defined by the absence of signal.

678.2 The Intensity Layer in Public Data Carries No Recoverable Information

We asked whether the intensity layer (L5), as distributed in public run folders, retains information about base calls beyond what the calls themselves already imply. For a HiSeq 4-channel run (cellranger-tiny-bcl-1.2.0; 16,896 lane–tile–cycle records) and a NovaSeq 6000 2-channel run (220329_A00519_1282_BH75CVDRX2; 43,056 records), both read with the Illumina InterOp library, we mapped per-tile, per-cycle channel intensities to the instrument’s call shares through 324 processing chains, varying background subtraction, normalization (including the instrument’s own 10th/90th-percentile contrast), phasing correction (none, instrument estimate, doubled), the channel-to-state map, and its misspecification. Maps were fitted on half of the tiles and evaluated on the other half. Each chain was compared with a baseline that ignores intensity entirely and predicts the mean call shares of each cycle.

The intensity-free baseline reached a total-variation distance of 0.0010 (HiSeq) and 0.0080 (NovaSeq). No chain improved on it: the best chains reached 0.0226 and 0.0584, and 0% of chains had positive skill on either instrument. The instrument’s own corrected intensities (HiSeq) also performed worse than the baseline (0.0296). The NovaSeq run contained no corrected intensities at all. Phasing correction changed distances by less than \(10^{-4}\), as expected for a per-cluster effect averaged over tiles.

Intensity summaries in public data therefore add nothing to the call shares that can be obtained without them. Together with the absence of images (L4), this places the effective floor of public Illumina data at the base-call layer (L6): every layer below it has either been discarded or survives only in a form that carries no independent information.