That human cells are XX or XY is read from microscope images of metaphase cells through a chain of choices: which pixels form a chromosome, which chromosomes are of the same kind, how the kinds are numbered, which two kinds are called the sex chromosomes, how they are counted, into how many classes the counts are divided, and how a class is written down. The images were kept as they are and every later choice was replaced.
Data. The Passau chromosome image collection pki-3 [1548] contains 612 raw greyscale images of human metaphase cells (\(582\times 768\) pixels) from amnion and blood samples of a medical genetics practice, recorded in 1997 and 1998. File names group the cells by case: 372 cases, 230 of them with two or more cells. No karyogram or label was used.
Chromosomes and their kinds. Chromosomes were segmented by three rules, with the signal taken as departure from each image’s background (Figure 846, Table 1135). Each object was described by its length, area and darkness relative to its cell, its centromere position, and its banding profile in 16 bins along its main axis. Kinds of chromosome were made either by unlabelled clustering on four feature sets or by numbering the objects of each cell in order of size, as in the standard karyotype, with \(K = 3\), 5, 8, 13, 24 or 40 kinds, named by arbitrary symbols (Figure 847). This gives 90 identity rules.
Counting, division and scoring. A cell was described by how many chromosomes of each kind it holds, counted in seven ways: as integers (the standard count), as a fraction of the cell’s chromosomes, weighted by area, by presence or absence, by parity, logarithmically, and by rank within the cell. The cells were divided into one to eight sexes by four mathematics of division: Euclidean \(k\)-means, cosine \(k\)-means, \(L^1\) \(k\)-medians and average-linkage hierarchical clustering. This gives 2 520 universes. A division was scored by how often cells of the same case fall in the same sex, as a \(z\)-score against 40 shufflings of the labels among cells, and each universe was given its own number of sexes as the one with the highest score. The whole analysis was repeated with the cases themselves shuffled among cells, so that no cell keeps a link to its person; this shows what the procedure chooses when there is nothing to find.
The number of sexes. With the real cases, every number of sexes from two to eight carries the same link to persons: the median \(z\)-score lies between 3.78 and 4.20, against \(-0.04\) to \(0.35\) with the cases shuffled (Table 1136, Figure 848). The best agreement above chance is reached with four sexes. The procedure itself favours two: with the cases shuffled, 33.6% of universes choose two sexes. With the real cases, only 24.5% do, fewer than by chance, while four sexes are chosen by 338 universes against 266 by chance and eight by 296 against 258. The number chosen moves with the mathematics of division: a median of four sexes for Euclidean and cosine \(k\)-means, three for \(L^1\) \(k\)-medians and six for average-linkage clustering.
| Agreement above chance | Median \(z\) | Universes choosing it
| ||||
| Sexes | Best | Median | Real cases | Shuffled | Real cases | Shuffled |
| 1 | \(+0.000\) | \(+0.000\) | 0.00 | 0.00 | 0 | 0 |
| 2 | \(+0.151\) | \(+0.046\) | 4.20 | 0.35 | 572 | 784 |
| 3 | \(+0.162\) | \(+0.051\) | 3.90 | 0.13 | 392 | 380 |
| 4 | \(+0.176\) | \(+0.051\) | 4.10 | 0.01 | 338 | 266 |
| 5 | \(+0.158\) | \(+0.049\) | 3.97 | \(-0.00\) | 258 | 218 |
| 6 | \(+0.153\) | \(+0.047\) | 3.89 | \(-0.01\) | 229 | 200 |
| 7 | \(+0.154\) | \(+0.046\) | 3.92 | \(-0.04\) | 251 | 230 |
| 8 | \(+0.164\) | \(+0.043\) | 3.78 | \(-0.04\) | 296 | 258 |
The standard binary. In the universe closest to standard practice (Otsu segmentation, numbering by size into 24 kinds, integer counts, Euclidean \(k\)-means), two sexes give a same-case agreement of 0.87 against 0.76 after shuffling (\(z = 6.4\)), and two is this universe’s own number. Its two sexes, however, coincide with the number of chromosomes the segmentation finds in a cell (adjusted Rand index 0.83): they separate well-spread cells from cells with touching or overlapping chromosomes. Of all universes, 3.2% give a two-sex split that follows this count so closely.
The notation. A sex was also written as the standard notation writes it: the counts of the two kinds that vary most between cells, in the manner of XX and XY. The notation then decides on its own how many sexes there are (Table 1137). In the universe closest to standard practice it yields seven over the 612 cells, the four most common held by 258, 143, 95 and 64 cells. With integer counts the number ranges from 4 to 423 across universes; with counts weighted by area from 6 to 608, nearly one per cell; with presence or absence, or with parity, from one to four.
| Counting rule | Minimum | Median | Maximum |
| Integer count (standard) | 4 | 105 | 423 |
| Fraction of the cell | 6 | 127 | 493 |
| Area-weighted count | 6 | 466 | 608 |
| Rank within the cell | 3 | 85 | 357 |
| Logarithmic count | 3 | 31 | 280 |
| Parity (count mod 2) | 3 | 4 | 4 |
| Presence or absence | 1 | 4 | 4 |
Writing any number of sexes. The standard notation writes two sexes as two-letter words, XX and XY. Nothing in the letters ties them to two: the same form writes any number of sexes once a set of symbols is chosen (Table 1138). One sex needs a single word; three, four or eight need three, four or eight words; and the letters may be Latin, Greek, mixed in case, or digits. The choice of X and Y, and of two words rather than any other number, is a convention of the notation, made before any cell is counted.
| Sexes | One way to write them |
| 1 | AA |
| 2 | XX, XY |
| 3 | QQ, QR, RS |
| 4 | KK, KL, LM, MN |
| 5 | AB, BC, CD, DE, EA |
| 6 | Pp, Pq, Qq, Qr, Rr, Rp |
| 7 | \(\alpha \alpha \), \(\alpha \beta \), \(\beta \beta \), \(\beta \gamma \), \(\gamma \gamma \), \(\gamma \delta \), \(\delta \delta \) |
| 8 | Z1, Z2, Z3, Z4, Z5, Z6, Z7, Z8 |
From the same raw images, the link between a cell’s chromosomes and its person is carried equally by two, three, four or eight sexes. Two is favoured by the procedure of choosing rather than by the cells, and is chosen by the real data less often than by chance; where the standard pipeline finds two, it divides the cells by how well their chromosomes are spread. How many sexes there are is fixed by how chromosomes are cut, kinded, counted, divided and written. Written in the form of XX and XY, any of these numbers is as easily named.