Skip to main content
. 2022 Dec 7;18(12):e1010681. doi: 10.1371/journal.pcbi.1010681

Fig 3. A schematic of our clustering procedure in Algorithm 1.

Fig 3

Each point is a TCR portrayed in an abstract 2-D space, where the distance between points is determined by TCRdist. Our procedure starts by identifying the maximally lonely TCR tmax according to Eq (10). In each iteration, we step out s units of TCRdist, and compute the mean loneliness of all TCRs within the annulus defined by the current and previous radii (or ball in the first step). By construction of Eq (10), we expect the loneliness values to steadily decrease as we move away from tmax, until we arrive at a radius where the loneliness values have stabilized. This “breakpoint radius” thus defines the radius of our cluster.