Skip to content

Index colour balance per cycle against Illumina's stated rule

ngs_index_color_balance

Checks the colour balance of each index read cycle: bases present, channels with signal and a verdict.

Runs
On the server
Level
Checked against a reference: the vendor's worked examples (Pooling Guide v17; Knowledge Articles #1931 and #8422)
Ask your assistant

What it is

Returns, for each index read and cycle, the bases present, the channels with signal and a verdict under your chemistry. Use when choosing indexes for a pool; it meets or fails the vendor's rule in the named revision and does not predict clustering or demultiplexing. Not for Hamming distance: use `ngs_index_collisions`; for pool volumes use `ngs_pooling_plan`. Chemistry and orientation are required, never assumed; the MiSeq i100 and one-channel systems are not covered.

Field: Sequencing and genomics.

What it does

You give

  • indexes (required): The samples in the pool; a pool of one is allowed.
  • chemistry (required): The instrument's chemistry: four-channel (MiSeq System); two-channel-a-dual (A in both channels: NovaSeq 6000, NextSeq 500/550, MiniSeq, NextSeq 1000/2000 standard SBS); two-channel-c-dual (C in both: XLEAP-SBS on NovaSeq X and NextSeq 1000/2000). Required.
  • orientation (required): Must be as-read: the bases in the order the instrument reads them. Index 2's orientation depends on the instrument, kit and run mode; this tool does not turn a sequence round.

No request is recorded for this tool.

Limits

  • Research arithmetic for planning sequencing libraries and runs and for genomic coordinate bookkeeping; it does arithmetic on the inputs it receives, and does not measure the library, the instrument or the data.
  • Illumina's stated colour-balance rule only, as published in the named revision of each document, or on the date read where none is shown: it says whether each index cycle meets or fails that rule, never whether a run will cluster or demultiplex.
  • A cycle that fails is not the vendor's classification of the pool: Knowledge Article #1931 lists as acceptable pools with a cycle that has no signal.
  • Low diversity in the insert reads, PhiX spike-in, loading and adapter dimers are outside it.
  • The bases must be given in the order the instrument reads them; index 2's orientation depends on the instrument, kit and run mode, and the tool does not turn a sequence round.
  • One-channel systems, HiSeq and the MiSeq i100 are not covered.
  • Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.

It will not answer when

  • the sequences of one index read differ in length, so cycles do not line up.
  • index 2 is given for some samples and not others.
Every input, with its units3 inputs
  • indexes (required): The samples in the pool; a pool of one is allowed.
  • chemistry (required): The instrument's chemistry: four-channel (MiSeq System); two-channel-a-dual (A in both channels: NovaSeq 6000, NextSeq 500/550, MiniSeq, NextSeq 1000/2000 standard SBS); two-channel-c-dual (C in both: XLEAP-SBS on NovaSeq X and NextSeq 1000/2000). Required.
  • orientation (required): Must be as-read: the bases in the order the instrument reads them. Index 2's orientation depends on the instrument, kit and run mode; this tool does not turn a sequence round.
Every refusal, with its code2 refusals
CodeWhen
INDEX_LENGTHS_DIFFERthe sequences of one index read differ in length, so cycles do not line up.
INDEX2_ON_SOME_ONLYindex 2 is given for some samples and not others.

The calculation

The method's equations, constants and worked example.

Index colour balance per cycle against Illumina's stated rulengs-index-color-balance@1.1.0

Equation 1

red:A,C

green: G, T

meets at cycle n if both channels have a base, else fails

SymbolMeaning
nindex cycle, from 1

Source 1.

Equation 2

red-or-blue: A, C

green: A, T

G none

meets-preferred if both channels, meets-acceptable if one, fails if none (the same minimum, signal in at least one channel, preferably both, with red or blue A or C and green A or T, is stated in Pooling Guide v17, Sequencing Chemistry, Two-Channel Chemistry

the reply's ruleSource lists it)

SymbolMeaning
nindex cycle, from 1

Source 2.

Equation 3

the same map with a blue channel in place of red (NextSeq 1000/2000 standard SBS)

SymbolMeaning
nindex cycle, from 1

Source 3.

Equation 4

blue: A, C

green: C, T

G none

meets-preferred if both channels, meets-acceptable if green only, fails if blue only or none: fails on blue only is derived from the guide's minimum, signal in at least the green channel, and is consistent with Knowledge Article #8422's advice to avoid blue only

SymbolMeaning
nindex cycle, from 1

Source 1.

Equation 5

avoid blue only (A or A+G) and no signal (G only) in any cycle

the GG rule is the pool rule for the index read

its sentence that index 1 cannot start with GG, in the sample-sheet orientation passage, is reported beside the list of indexes starting GG as information only, since its own recommended 3-plex combination 3 includes GGTTGCGAGG

SymbolMeaning
nindex cycle, from 1

Source 4.

Equation 6

two-channel: the pool fails the first-two-cycles rule exactly when every index has G at cycles 1 and 2: the record's reading of KA #1241 across the whole pool, supported by its N705 single-plex example

under two-channel-c-dual the note on the indexes starting GG is given on index 1 only, where Knowledge Article #8422 states that index 1 cannot start with GG

index 2's list of indexes starting GG is the record's pool rule, not a rule #8422 gives for index 2 (its index 2 sentence, cannot end with CC, is in sample-sheet orientation, which is the caller's)

orders in the reply: basesPresent A, C, G, T

channelsWithSignal in the chemistry's channel order (red or red-or-blue or blue, then green)

instruments and ruleSource as the chemistry's mode text lists them

SymbolMeaning
nindex cycle, from 1

Source 2.

Equation 7

the guide's good and bad four-channel combinations

SymbolMeaning
nindex cycle, from 1

Source 5.

Equation 8

the ideal, acceptable and unacceptable tables, cycle by cycle

SymbolMeaning
nindex cycle, from 1

Source 6.

Conventions

  • chemistry = four-channel: per cycle, red (A, C) and green (G, T) signal; meets or fails the rule of Pooling Guide 1000000041074 v17 for the MiSeq System
  • chemistry = two-channel-a-dual: per cycle, red-or-blue (A, C) and green (A, T) signal, G dark; meets-preferred, meets-acceptable or fails the rule of Knowledge Articles #1241, #1931 and #3339 and Pooling Guide v17 for the NovaSeq 6000, NextSeq 500/550, MiniSeq and NextSeq 1000/2000 standard SBS
  • chemistry = two-channel-c-dual: per cycle, blue (A, C) and green (C, T) signal, G dark; meets-preferred, meets-acceptable or fails the rule of Pooling Guide v17 and Knowledge Article #8422 for XLEAP-SBS on the NovaSeq X Series and NextSeq 1000/2000

A definition, not a model: the equation states what the quantity means. A different convention gives a different number.

Worked example

Worked example: one case of ngs-index-color-balance@1.1.0, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.

Inputs

  • indexes[0].name = N705+S502
  • indexes[0].index1 = GGACTCCT
  • indexes[0].index2 = CTCTCTAT
  • indexes[1].name = N706+S502
  • indexes[1].index1 = TAGGCATG
  • indexes[1].index2 = CTCTCTAT
  • indexes[2].name = N701+S503
  • indexes[2].index1 = TAAGGCGA
  • indexes[2].index2 = TATCCTCT
  • indexes[3].name = N702+S503
  • indexes[3].index1 = CGTACTAG
  • indexes[3].index2 = TATCCTCT
  • chemistry = four-channel
  • orientation = as-read

Steps

  1. f = 5, from indexes[0].index2, indexes[2].index2; by equation 1; gives result.index2.failingCycles[0].

The working, as the case writes it:

index 2 cycles 5-8: C/C red only, T/T green only, A/C red only, T/T green only

Answer

result.index2.failingCycles[0] = 5

Where these values came from: the source's own worked example, Illumina Index Adapters Pooling Guide 1000000041074 v17 (Color Balance page); Knowledge Articles #1931 (Tables 1 to 3) and #8422 (low-plexity combinations), read in full 10 November 2026; Pooling Guide v17, Color Balance page: example index adapter combinations on a four-channel system (text table; a tick per cycle, X where a channel is missing).

At build the tool returned this answer within the tolerance the file states: exact: cycles, bases, channels, verdicts, names, flags, statuses and codes.

Sources

  1. Illumina Index Adapters Pooling Guide, document 1000000041074, Sequencing Chemistry

    Used for: Index colour balance per cycle against Illumina's stated rule. At: section Four-Channel Chemistry; Two-Channel Chemistry.

    Read in full, 10 November 2026
  2. Illumina Knowledge Article #1241, Index color balancing for the NextSeq 500/550 and MiniSeq systems

    Used for: Index colour balance per cycle against Illumina's stated rule. At: section 2-Channel Sequencing; Index Considerations.

    Read in full, 10 November 2026
  3. Illumina Knowledge Article #3339, Index color balancing for the NextSeq 1000/2000 system using standard SBS reagents

    Used for: Index colour balance per cycle against Illumina's stated rule. At: section NextSeq 1000/2000 2-Channel Sequencing; Index Considerations.

    Read in full, 10 November 2026
  4. Illumina Knowledge Article #8422, Index color balancing for XLEAP-SBS reagents on the NextSeq 1000/2000 and NovaSeq X Series

    Used for: Index colour balance per cycle against Illumina's stated rule. At: section XLEAP-SBS channel map; Example Low-Plexity Index Adapter Combinations (images).

    Read in full, 10 November 2026
  5. Illumina Index Adapters Pooling Guide, document 1000000041074, Color Balance

    Used for: Index colour balance per cycle against Illumina's stated rule. At: table Example Index Adapter Combinations: good and bad examples on a four-channel system.

    Read in full, 10 November 2026
  6. Illumina Knowledge Article #1931, Index color balancing for the NovaSeq 6000 system

    Used for: Index colour balance per cycle against Illumina's stated rule. At: table Tables 1 to 3 and the legend (images).

    Read in full, 10 November 2026

How it is checked

Level

Checked against a reference.

Checked against

The source's own worked example, CPython standard library, 3.13.18; our own exact-arithmetic script and a hand-worked case.

Cases

No case set is linked to this version.

Not checked

One-channel chemistry (iSeq 100: no base-to-image map in the source); the MiSeq i100 (its article's map and rule sentences disagree; Drybench ruling (colour balance), 10 November 2026, ruling 1); HiSeq; index orientation (the caller's); low diversity in the insert reads, PhiX spike-in, loading and adapter dimers.

Changes to its methods0 changes

No change is logged for these method versions.