Why an Island Is Not Automatically a Cluster
A t-SNE or UMAP plot can show cell groups as islands separated by empty space. That appearance is useful for noticing structure, but it does not by itself show that the cells form discrete groups in the original expression-derived representation. The embedding is a low-dimensional construction that emphasizes selected aspects of neighborhood structure; its gaps are not direct measurements of gaps between cell populations.
A practical diagnostic is to ask whether an apparent separation persists when the neighborhood scale changes, and whether cells on opposite sides of the visible boundary are still neighbors in the representation used to build the embedding. The aim is not to prove or disprove a biological classification from a plot. It is to check whether the visual island interpretation is sensitive to the embedding settings or conflicts with local relationships in the higher-dimensional data.
The introductory material on embedding density explains why dense and sparse regions in a plot need cautious interpretation. Here the focus is specifically on apparent separation: a blank strip between plotted regions can coexist with high-dimensional neighbor links connecting cells across that strip.
Two Complementary Checks
First, vary the method’s neighborhood-scale parameter while keeping the cells, input representation, distance metric, and other analysis choices fixed. In t-SNE, perplexity controls the effective neighborhood scale used to define pairwise similarities. In UMAP, n_neighbors affects the scale of the nearest-neighbor information used to construct the fuzzy representation. These parameters are not interchangeable, and neither should be interpreted as a guaranteed number of visible neighbors in the final plot.
Use values that are valid for the number of cells. In particular, t-SNE perplexity must be smaller than the number of observations, and a UMAP neighborhood cannot include more than the other \(N-1\) cells when there are \(N\) cells. Implementations may cap an oversized UMAP setting; report the effective setting rather than describing it as a larger neighborhood than the data allow.
Second, inspect neighbors in the high-dimensional representation supplied to the embedding. For a proposed division into two visually separated regions, count how often a cell’s nearest neighbors lie on the other side. This makes the proposed visual boundary explicit and checks whether local connections cross it. The count is a descriptive diagnostic, not a universal significance test: there is no single cross-boundary proportion that defines a cluster.
The neighbor sets in this calculation are obtained from the same input representation and metric used for the embedding, not from distances in the two-dimensional plot. If distances are tied, the implementation’s tie-handling rule can affect which neighbors are selected; use a consistent rule across comparisons. Likewise, do not change the input representation or metric at the same time as the embedding parameter, because then a change in the plot has more than one possible explanation.
Worked Example: A t-SNE Gap With Crossing Neighbors
Worked Example: A t-SNE Gap With Crossing Neighbors
Suppose a hypothetical data set contains 30 cells, represented by the same selected principal components and distance metric in both t-SNE runs. A plot at perplexity 5 appears to have two islands, while a plot at perplexity 12 shows a narrow bridge between them. The proposed island boundary divides the cells into regions \(A\) and \(B\), with 15 cells in each. Both perplexity values are below \(N=30\), so they meet the basic size condition. All other settings, including the random seed, are held fixed for this comparison.
To check the high-dimensional relationships, take \(k=6\) nearest neighbors per cell in the fixed principal-component representation. There are \(Nk=30(6)=180\) directed neighbor links. Suppose 27 links cross the proposed \(A/B\) boundary. Then $$ C_6=\frac{27}{180}=0.15. $$ Thus, 15% of the directed six-neighbor links cross the boundary. This is evidence that the two visually separated regions are locally connected in the input representation. Together with the bridge appearing at the larger perplexity, it cautions against treating the perplexity-5 islands as established discrete groups.
The calculation does not say that the cells are biologically one population. Nor does the bridge prove continuity. It shows that the island interpretation is not the only reading consistent with the data: the embedding appearance changes with neighborhood scale, and a substantial share of local links cross the proposed boundary.
Worked Example: UMAP Settings Must Be Valid for the Data Size
Worked Example: UMAP Settings Must Be Valid for the Data Size
Consider a hypothetical set of 24 cells, with a fixed input representation and metric. Compare UMAP runs using n_neighbors=5 and n_neighbors=20. Both values are valid: each is less than the 23 other cells available to any one cell. Suppose the first plot shows two islands with a gap, while the second plot shows a thin connection.
The proposed boundary again divides the cells into two regions of 12. At \(k=5\) in the high-dimensional representation, there are \(24(5)=120\) directed neighbor links. If 42 cross the boundary, the fraction is $$ C_5=\frac{42}{120}=0.35. $$ At \(k=20\), there are \(24(20)=480\) directed links. Suppose 144 cross the boundary; then $$ C_{20}=\frac{144}{480}=0.30. $$ Both scales show cross-boundary neighbors. The larger-scale fraction is slightly lower, but it still represents many links: \(144\) of \(480\). The visual gap in the first plot therefore should not be read as evidence that no local high-dimensional connections exist. The second plot’s bridge is consistent with the same conclusion.
The comparison is interpretable because the setting 20 is possible for 24 cells. Specifying n_neighbors=30 would not create a 30-neighbor scale here: there are only 23 other cells per cell, and software may cap the requested value. Such a run must be described using its effective value, not as a comparison at 30 neighbors.
What Parameter Sensitivity Can and Cannot Tell You
A meaningful comparison changes one scale parameter at a time. For t-SNE, examine a small set of valid perplexities rather than searching for a setting that produces a preferred picture. For UMAP, compare valid n_neighbors values spanning reasonable local and broader scales. In each case, keep the cells and input representation fixed, and record the effective settings. A parameter change alters the neighborhood information that the method tries to represent, so altered islands or bridges are a diagnostic signal—not a failure of arithmetic or an automatic classification result.
The cross-boundary fraction gives a second, complementary view. Its justification is direct: the denominator \(Nk\) counts every directed neighbor choice made by \(N\) cells when each contributes \(k\) neighbors. The numerator counts the subset whose endpoints fall on opposite sides of the proposed division. Therefore, their ratio is exactly the proportion of those choices that cross the boundary. If the visual separation were a strong local break at this scale, one would expect relatively few such links; if many links cross, the plot’s gap does not reflect a lack of local links.
This reasoning is descriptive. Neighbor links are not independent observations, so treating the \(Nk\) links as independent Bernoulli trials to calculate a standard error or p-value would generally be unjustified. Links share cells, and nearest-neighbor selection constrains which links can occur. Interpret the fraction as a summary for diagnosis, and compare it across explicitly stated scales rather than applying an arbitrary threshold.
Worked Example: Persistent Separation With Few Crossing Links
In a hypothetical set of 40 cells, a UMAP plot shows two regions that remain visually separate at n_neighbors=6 and n_neighbors=12. Use a fixed high-dimensional representation to calculate cross-boundary fractions for the proposed division. At \(k=4\), there are \(40(4)=160\) directed links, of which 8 cross the boundary:
$$
C_4=\frac{8}{160}=0.05.
$$
At \(k=8\), there are \(40(8)=320\) directed links, of which 16 cross:
$$
C_8=\frac{16}{320}=0.05.
$$
At these two tested scales, 5% of directed links cross the division, and the visible separation persists across the two embedding settings. This is more consistent with a locally separated partition than a plot with many crossing links and a parameter-sensitive gap.
The warranted conclusion remains limited: the diagnostics support a stable local separation under the choices tested. They do not prove that the cells are separate biological types, rule out a transition between them, or guarantee the same pattern under every representation or metric. Additional biological interpretation and analysis are needed for those claims.
Diagnostics, Alternatives, and Common Pitfalls
Look for agreement between the two checks rather than relying on any one visual impression. If islands merge or acquire bridges as perplexity or n_neighbors changes, and high-dimensional links frequently cross the proposed boundary, describe the islands as parameter-sensitive visual regions. If separation persists across tested scales and cross-boundary links are consistently uncommon, the evidence for local separation is stronger, but it is still not a formal cluster assignment.
A useful alternative to reading the embedding alone is to inspect the high-dimensional neighbor relationships directly, as above. Another is to color the same embedding by known cell annotations or measured features, where those are available, and ask whether the visual division aligns with independent information. Such agreement can support interpretation, but labels and markers can be incomplete or confounded; it does not turn a geometric gap into proof of discrete groups. Conversely, if an embedding changes but its high-dimensional links remain similar, the change may be primarily a consequence of the low-dimensional display.
- Pitfall: “There is empty space, so these must be different cell types.” A plotted gap is not a test of group membership. Check neighborhood-scale sensitivity and cross-boundary neighbors in the input representation.
- Pitfall: “I requested more neighbors than there are cells, so I tested a broad scale.” That setting is impossible as stated. For \(N\) cells, at most \(N-1\) other cells are available; report any implementation cap or choose a valid value.
- Pitfall: changing multiple analysis choices together. If the representation, metric, and neighborhood parameter all change, you cannot attribute a changed island pattern to the parameter alone. Hold other choices fixed for a focused diagnostic.
- Pitfall: treating a cross-link percentage as a universal cutoff. The fraction depends on \(k\), the representation, metric, and proposed boundary. Report the choices and interpret the value comparatively, not as a stand-alone decision rule.
- Pitfall: concluding that parameter sensitivity proves there are no real groups. A plot’s sensitivity weakens a claim based solely on that plot; it does not establish the opposite biological conclusion.
Check Your Understanding
Answer each question using the stated data and distinguish descriptive evidence from a biological conclusion.
- A t-SNE analysis has \(N=18\) cells. Is perplexity 20 valid under the usual requirement that perplexity be smaller than the number of observations? What is one valid alternative value?
- For \(N=25\) cells and \(k=4\), a proposed island boundary is crossed by 30 directed nearest-neighbor links. Calculate \(C_k\).
- A UMAP run on 16 cells is requested with
n_neighbors=20. Why is it incorrect to report that the resulting embedding used a 20-neighbor scale? - Two islands persist across several settings, and few high-dimensional neighbor links cross their boundary. What conclusion is supported, and what stronger conclusion is not established?
Solutions. (1) No. Since \(20\) is not smaller than \(18\), it violates the usual requirement. For example, perplexity 8 is valid because \(8<18\). (2) The total number of directed links is \(Nk=25(4)=100\), so \(C_4=30/100=0.30\), or 30%. This is a descriptive cross-boundary fraction. (3) Each cell has only 15 other cells, so a 20-neighbor scale is impossible. The implementation may cap the value; report the effective value or choose a valid setting no greater than 15. (4) The results support local separation under the tested representations, metrics, and scales. They do not prove distinct biological cell types or establish that a transition between the regions is absent.