Skip to content

Select Colors and the spillover window

The spillover window

With an instrument chosen and two or more dyes checked, BFSpectra opens a window titled with the instrument name. It holds a square matrix with one row and one column per checked dye, comparing their detector signatures. The row headers are shown in each dye's colour.

The drop-down at the top chooses what the cells show:

Choice Cell value Meaning
Cosine matrix Cosine similarity of the two signatures, 0 - 1 1 means the instrument sees identical spectral shapes; 0 means they share no detector
Angle matrix The angle between the signatures, in degrees, 0 - 90 The same information on a more even scale. Small angles are hard to unmix

Cells are coloured from least to most similar. The label beside the drop-down shows the worst pair: the largest off-diagonal cosine, or the smallest angle.

Dependency

The last column, Dependency, answers a different question: not is this dye like another single dye? but can this dye's signature be built from all the others combined? It is the cosine between a dye's signature and its best reconstruction from the other checked dyes. A value near 1 means the dye is nearly a mixture of the rest, so unmixing it will be noisy even if no single pair looks bad.

E-RANK

The top-left corner shows E-RANK, the effective rank of the set of signatures, computed from the entropy of their singular values. It is a number between 1 and the number of checked dyes. The closer it is to the dye count, the more independent the panel. A panel of 12 dyes with an E-RANK of 7 behaves, for unmixing purposes, like far fewer truly distinct colours.

Export writes the matrix as shown to a CSV file.

Reading the matrix

As a rough guide: cosines above about 0.9 (angles below about 25 degrees) deserve a second look, and a Dependency close to 1 on any row is a warning even when every pair looks fine.

Select Colors

Select Colors chooses dyes for you.

  1. Choose an instrument, and untick any lasers you do not have.
  2. Tick Stokes Only if you want scattered-light detectors ignored.
  3. Set the number box under Select Colors to how many dyes you need (at least 2).
  4. Press Select Colors.

BFSpectra considers every dye in the current list - the whole database, or the open subset - and checks the N dyes whose signatures are most distinct from each other: it searches for the set whose largest pairwise cosine is as small as possible. Anything checked before is unchecked first. The bars and the spillover window update to show the result.

Restrict the search to dyes you actually have

Selecting from a 400-dye database will happily suggest dyes you cannot buy or do not stock. Make a subset of your available dyes, open it, and run Select Colors there.

The result optimises spectral separation only. It ignores dye brightness, antigen density and tandem stability - treat it as a starting point for the Panel editor, not as a finished panel.