1. What this tool does and who it is for

一、这个工具做什么、适合谁用

The input is deliberately small: two dropdowns, one for the mother’s eye color and one for the father’s, each offering brown, green or blue. There is no field for grandparents, no genotype input, no photo upload and no account. Pressing Calculate calls the eyeColor() function in js/tools-genetics.js, which looks up a six-row chart and returns three percentages plus a “most likely” label. Because it is a lookup and a sort rather than a network call, the answer appears instantly and the page keeps working offline once it has been cached.

输入部分刻意做得很小:两个下拉框,分别是妈妈的瞳色和爸爸的瞳色,选项只有棕、绿、蓝。页面不问祖辈瞳色,不接受基因型输入,不上传照片,也不需要账号。点击“计算”后,脚本调用 js/tools-genetics.js 中的 eyeColor(),在一张六行的对照表里查值,返回三个百分比和一个“最可能”标签。整个过程只是查表和排序,不发网络请求,所以结果瞬时出现,页面缓存之后离线也能用。

Four kinds of visitors get something out of it. Expectant parents want a rough answer in the third trimester, when an ultrasound cannot show iris color at all. Couples where one partner has green or blue eyes and the other has brown see the least intuitive numbers, because brown usually wins but not by a landslide. Students and teachers get a two-locus example whose arithmetic they can reproduce on paper. Baby-shower hosts and writers get a defensible range to quote instead of inventing a single answer.

四类人会觉得它有用。孕晚期的准父母想要一个粗略答案——超声根本看不到虹膜颜色。一方绿眼或蓝眼、另一方棕眼的伴侣会看到最反直觉的数字,因为棕色通常胜出,但不是压倒性胜出。学生和老师可以得到一个能在纸上复算的双位点例子。宝宝派对的主持人和写作者则能引用一个有依据的区间,而不是硬编一个答案。

The output has four parts worth knowing: a large label showing the highest-probability color; a sub-line repeating it as a sentence; one bar per color, scaled to the percentage so 75% fills three quarters of the track; and a footnote reminding you that the model is simplified. Two caveats attach to the label. When two colors tie at 50%, the tool prints the one that comes first in its internal order rather than announcing a tie. And a label never means certainty — for brown × blue it reads Brown at 50%, which is a coin flip.

输出有四部分值得了解:一个显示最高概率颜色的大标签;一行用句子重复该结论的副标题;每种颜色一根按百分比缩放的条(75% 会填满轨道的四分之三);以及一句提醒模型已简化的脚注。标签有两个需要注意的地方。当两种颜色各占 50% 打平时,工具打印的是内部排序靠前的那一个,而不会提示“平局”。标签也从不代表确定——棕 × 蓝的标签写棕色,但那只是五五开。

What it is not: it is not carrier screening. It cannot tell whether a brown-eyed parent is BB or Bb, it cannot see a grandparent’s genotype, and it does not model sex-linked or mitochondrial effects. Those unknowns are exactly why the same pair of brown eyes can sit anywhere between 6.25% and 50% blue depending on the partner.

它不是什么:不是携带者筛查。它无法判断一位棕眼家长是 BB 还是 Bb,看不到祖辈的基因型,也不建模伴性或线粒体效应。正是这些未知,让同一双棕眼在不同伴侣下,蓝眼概率可以在 6.25% 到 50% 之间大幅摆动。

2. Method, formula and the data behind the chart

二、方法与公式:模型假设与数据来源

The chart is the classic two-locus teaching model, not a single-gene rule. Locus one carries B (brown) and b (blue); locus two carries G (green) and g (blue). B is epistatic: if a child inherits at least one B, the iris develops as brown whatever happens at the green locus. With bb, a child carrying at least one G is green, and only a child with bb and gg is blue. That produces the familiar ladder — brown over green over blue — without pretending that one gene runs the whole system.

这张表用的是经典的双位点教学模型,而不是单基因规则。第一个位点带 B(棕)与 b(蓝),第二个位点带 G(绿)与 g(蓝)。B 具有上位效应:孩子只要继承一个 B,无论绿位点是什么,虹膜都会发育为棕色。在 bb 的前提下,带至少一个 G 的孩子是绿色,只有 bb 且 gg 的孩子才是蓝色。这样就得到熟悉的阶梯——棕 > 绿 > 蓝——而不必假装整个系统由一个基因决定。

For each of the six pairings the chart assumes the simplest genotypes consistent with the colors on the form. Two brown-eyed parents are both treated as Bb Gg, which is why the answer falls into sixteenths: 12/16 brown, 3/16 green, 1/16 blue. A brown-eyed parent with a green-eyed partner is treated as Bb Gg against bb Gg, and a brown-eyed parent with a blue-eyed partner as Bb gg against bb gg. Green parents are bb Gg; blue parents are bb gg. The assumptions are generous on purpose — they let a hidden lighter allele surface, which is the outcome most parents are actually asking about.

对六种组合,图表按与表单颜色最相符、也最简单的基因型来设定。两位棕眼父母都被视为 Bb Gg,所以结果落在十六分之一上:12/16 棕、3/16 绿、1/16 蓝。棕眼配绿眼视为 Bb Gg 对 bb Gg,棕眼配蓝眼视为 Bb gg 对 bb gg。绿眼父母是 bb Gg,蓝眼父母是 bb gg。这些假设故意“宽松”——让隐藏的浅色等位基因有机会显形,而这恰恰是多数父母真正在问的情况。

The script sorts the two inputs before it builds the lookup key, so mother-brown/father-blue and mother-blue/father-brown return identical output. That is intentional: the model has no sex-linked terms, and swapping the parents cannot change the arithmetic.

脚本在生成查表键之前会先把两个输入排序,所以“妈妈棕、爸爸蓝”和“妈妈蓝、爸爸棕”返回完全相同的输出。这是有意的:模型里没有伴性项,交换父母不可能改变计算结果。

Parents’ eye colorsGenotypes assumed by the chartBrownGreenBlue
Brown × BrownBb Gg × Bb Gg75%18.75%6.25%
Brown × GreenBb Gg × bb Gg50%37.5%12.5%
Brown × BlueBb gg × bb gg50%0%50%
Green × Greenbb Gg × bb Gg0%75%25%
Green × Bluebb Gg × bb gg0%50%50%
Blue × Bluebb gg × bb gg0%1%99%
父母瞳色图表假定的基因型棕色绿色蓝色
棕 × 棕Bb Gg × Bb Gg75%18.75%6.25%
棕 × 绿Bb Gg × bb Gg50%37.5%12.5%
棕 × 蓝Bb gg × bb gg50%0%50%
绿 × 绿bb Gg × bb Gg0%75%25%
绿 × 蓝bb Gg × bb gg0%50%50%
蓝 × 蓝bb gg × bb gg0%1%99%

All six rows total exactly 100, and the stored values are quarters of a percent at worst, so the bars never add up to 99.7% or 100.4%. The fallback branch in the code (Brown 50 / Green 25 / Blue 25) is unreachable through the form, because the six keys already cover every pair the dropdowns allow. These percentages are a teaching convention rather than measured population data: MedlinePlus describes eye color as a polygenic trait in which OCA2 and the nearby HERC2 region on chromosome 15 are the best-studied contributors, and a two-locus chart captures only part of that picture.

六行都恰好合计 100,存值最细只到四分之一个百分点,因此进度条不会出现 99.7% 或 100.4% 这类偏差。代码里的兜底分支(棕 50 / 绿 25 / 蓝 25)通过表单根本走不到,因为六个键已经覆盖下拉框允许的全部组合。这些百分比是教学约定,而不是实测的人群数据:MedlinePlus 把瞳色描述为多基因性状,其中 OCA2 与染色体 15 上邻近的 HERC2 区域是研究最充分的两个贡献者,而双位点图表只能覆盖其中一部分。

3. A worked example you can check by hand

三、可以手工复算的算例

Take the most common case: mother brown, father brown, both left at the form’s default. The tool returns Brown 75%, Green 18.75%, Blue 6.25%. Here is the whole derivation, with nothing hidden.

取最常见的组合:妈妈棕色、爸爸棕色,都用表单默认值。工具返回棕 75%、绿 18.75%、蓝 6.25%。下面是完整推导,没有隐藏步骤。

Step 1, first locus. Both parents are Bb, so the cross is Bb × Bb. Its four cells are BB, Bb, Bb and bb: one quarter BB, one half Bb, one quarter bb. Three quarters of children therefore carry at least one B and develop brown irises.

第一步,第一个位点。父母都是 Bb,杂交为 Bb × Bb。四个格子是 BB、Bb、Bb、bb:四分之一 BB,二分之一 Bb,四分之一 bb。因此四分之三的孩子至少带一个 B,虹膜呈棕色。

Step 2, second locus. Both parents are Gg, so the cross is Gg × Gg, giving GG, Gg, Gg and gg: three quarters carry G, one quarter does not.

第二步,第二个位点。父母都是 Gg,杂交为 Gg × Gg,得到 GG、Gg、Gg、gg:四分之三带 G,四分之一不带。

Step 3, combine. The two loci assort independently, so multiply the fractions. Brown needs at least one B: 3/4, which is 12/16. Green needs bb plus at least one G: 1/4 × 3/4 = 3/16. Blue needs bb and gg: 1/4 × 1/4 = 1/16. Convert to percentages and you get 75%, 18.75% and 6.25% — exactly what the bars display.

第三步,合并。两个位点独立分配,所以把分数相乘。棕色需要至少一个 B:3/4,即 12/16。绿色需要 bb 加至少一个 G:1/4 × 3/4 = 3/16。蓝色需要 bb 和 gg:1/4 × 1/4 = 1/16。换算成百分比就是 75%、18.75%、6.25%——与进度条显示的完全一致。

Locus crossCellsRatioDominant outcome
Bb × BbBB, Bb, Bb, bb1 : 2 : 13/4 carry B → brown
Gg × GgGG, Gg, Gg, gg1 : 2 : 13/4 carry G → green if bb
位点杂交基因型格子比例显性结果
Bb × BbBB、Bb、Bb、bb1 : 2 : 13/4 带 B → 棕色
Gg × GgGG、Gg、Gg、gg1 : 2 : 13/4 带 G → 若为 bb 则绿色
OutcomeConditionCells of 16FractionPercent shown
Brownat least one B1212/1675%
Greenbb and at least one G33/1618.75%
Bluebb and gg11/166.25%
结果条件十六格中的格数分数显示百分比
棕色至少一个 B1212/1675%
绿色bb 且至少一个 G33/1618.75%
蓝色bb 且 gg11/166.25%

Two quick sanity checks with other rows. Green × blue: a Gg parent against a gg parent gives Gg or gg in equal parts, so 50% green and 50% blue, with brown impossible because both parents are bb — the tool shows exactly those numbers. Brown × blue: Bb gg against bb gg gives half Bb (brown) and half bb gg (blue), which is the 50/50 split the chart reports. If a result you see does not match the row you worked out on paper, you are almost certainly looking at a different pairing rather than a bug.

再用其他行做两次快速核对。绿 × 蓝:Gg 对 gg,一半 Gg、一半 gg,所以绿 50%、蓝 50%,且因双方都是 bb 而棕色不可能——工具显示的正是这两个数字。棕 × 蓝:Bb gg 对 bb gg,一半 Bb(棕)、一半 bb gg(蓝),正是图表给出的五五开。如果你看到的结果和纸上推导的行对不上,几乎可以确定是配对选错了,而不是程序出错。

4. How to read the result without over-reading it

四、怎么读结果:概率区间、置信范围与常见误读

A percentage here is a per-child probability, not a promise and not a population frequency. Seventy-five percent brown means that if this couple had many children, roughly three in four would be brown-eyed; with one baby you get one outcome, and the 6.25% branch is entirely possible on the first try. One in sixteen is small, but it is not zero.

这里的百分比是“单个孩子”的概率,不是承诺,也不是人群比例。棕 75% 的意思是:如果这对父母有很多孩子,大约四分之三会是棕眼;但只有一个孩子时,你只会得到一个结果,而 6.25% 那条分支第一次就可能发生。十六分之一很小,但不是零。

The label ranks, it does not quantify confidence. For brown × blue the top two outcomes tie at 50%, and the label reads Brown only because Brown is listed first. Read the bars, not the headline, whenever two values are close. The model publishes no confidence interval; the honest way to express its uncertainty is the spread you see when you try neighbouring combinations: blue ranges from 6.25% (brown × brown) through 12.5% (brown × green) and 50% (green × blue) up to 99% (blue × blue).

标签只负责排序,不量化置信度。棕 × 蓝时前两名各占 50%,标签写“棕色”只是因为它排在前面。只要两个数值接近,就应该看进度条而不是大标题。这个模型没有给出置信区间;要诚实地表达它的不确定性,最好的办法是看邻近组合给出的分布宽度:蓝眼概率从棕 × 棕的 6.25%,到棕 × 绿的 12.5%、绿 × 蓝的 50%,一直到蓝 × 蓝的 99%。

Five misreadings show up repeatedly. First, assuming green outranks brown — it does not; brown masks green. Second, treating a newborn’s slate-blue eyes as the answer, when melanin production has barely started. Third, reading 6.25% as “never”. Fourth, quoting the percentage as a general population figure, when it is conditional on these two parents. Fifth, treating the tool as a genetic test, when it never looks at DNA at all.

有五种误读反复出现。第一,以为绿色高于棕色——并不是,棕色会遮盖绿色。第二,把新生儿那种灰蓝色眼睛当成最终答案,而黑色素生产才刚开始。第三,把 6.25% 读成“绝不可能”。第四,把这个百分比当成一般人群数据,而它是以这对父母为条件的。第五,把工具当成基因检测,而它从头到尾没有看过 DNA。

A useful habit: run the mirror case too. Brown mother × green father and green mother × brown father should be identical, and they are, because the code sorts the pair before lookup. If they ever differ, the page state is the problem, not the genetics.

一个好习惯:顺手跑一次镜像组合。妈妈棕 × 爸爸绿 与 妈妈绿 × 爸爸棕 应当完全相同,事实上也相同,因为代码在查表前先对组合排序。如果两者出现差异,问题在页面状态,而不在遗传学。

5. Where the model stops: limits, exceptions and when to ask a doctor

五、准确性边界:不能预测什么、有哪些例外、何时咨询医生

This chart models two loci. Real iris color depends on many more, including SLC24A4, TYR, SLC45A2, TYRP1 and IRF4 alongside OCA2 and HERC2, and on how light scatters through iris tissue, not only on how much pigment is present. That is why a two-locus answer is a plausible range and never a certainty.

这张表只建模两个位点。真实的虹膜颜色还取决于更多基因,除 OCA2 与 HERC2 之外,还包括 SLC24A4、TYR、SLC45A2、TYRP1、IRF4 等,也取决于光线如何在虹膜组织中散射,而不只是色素多少。所以双位点的答案只能是有依据的区间,永远不是确定结论。

Several documented exceptions sit outside the chart entirely. Heterochromia — two different iris colors in one child — is not modelled. Oculocutaneous albinism, which involves OCA2 and other pigmentation genes, produces very pale irises together with vision changes. Waardenburg syndrome can shift iris pigment and is associated with hearing loss. None of these can be predicted from two dropdowns, and none should be inferred from a percentage.

还有若干有据可查的例外完全在图表之外。异色瞳——一个孩子两只虹膜颜色不同——没有被建模。眼皮肤白化病涉及 OCA2 及其他色素基因,会造成虹膜极浅并伴随视力变化。瓦氏症(Waardenburg 综合征)可改变虹膜色素,并与听力损失相关。这些都不能靠两个下拉框预测,也都不该从一个百分比里推断出来。

Timing matters as much as genetics. Most newborns have little iris melanin and look blue-grey; production increases over roughly the first 6–12 months, and most children reach their final color by about 2–3 years. Some keep subtle shifts longer. A prediction made at 20 weeks of pregnancy is therefore a prediction about the adult color, not about the maternity-ward photo.

时间因素和遗传同样重要。多数新生儿虹膜黑色素很少,看起来是蓝灰色;黑色素在出生后大约 6–12 个月内逐步增加,多数孩子在 2–3 岁时达到最终颜色,少数还会更久。因此孕 20 周做出的预测,预测的是成年后的瞳色,而不是产房照片里的颜色。

When to talk to a clinician: a white or grey pupil reflex (leukocoria), a newly different iris color between the two eyes, nystagmus, marked light sensitivity, or a baby who does not appear to fixate and track. Those are paediatric eye signs, not cosmetic color questions, and they are not what this tool screens for.

什么时候该找医生:瞳孔区出现白色或灰色反光(白瞳症)、两眼虹膜颜色新近出现差异、眼球震颤、明显畏光,或者宝宝似乎不会注视和追视。这些是儿童眼科体征,不是“颜色好不好看”的问题,也不是本工具筛查的内容。

Not a diagnosis. This tool is an educational model built on two loci. It cannot detect albinism, heterochromia, Waardenburg syndrome or any eye condition, and it must not be used to rule anything out. Any concern about a baby’s eyes belongs with a paediatrician or paediatric ophthalmologist.
不是诊断。本工具是基于两个位点的科普模型,无法检出白化病、异色瞳、瓦氏症或任何眼部疾病,也不能用来“排除”任何问题。任何关于宝宝眼睛的担忧,都应交给儿科医生或小儿眼科医生。

6. How to actually use it

六、实际怎么用

Three practical moves. First, map the whole envelope before you trust one number: enter all nine combinations once and look down the blue column. Seeing 6.25% next to 99% makes it obvious how much the partner’s color, not the baby, drives the spread — and it takes about two minutes.

三条可执行建议。第一,在相信单个数字之前先把整个范围铺开:把九种组合都输一遍,只看蓝眼那一列。看到 6.25% 和 99% 并排,就能直观理解决定分布宽度的是伴侣的瞳色,而不是宝宝本身——整个过程大约两分钟。

Second, turn the prediction into a keepsake with a timestamp. Download the result card now, then photograph your baby’s eyes in the same window light at 1, 6 and 12 months. Most families see the iris visibly darken in that window; a few do not. Either way you end up with a record that is more interesting than the original percentage.

第二,把预测变成一份带时间戳的纪念。现在先下载结果卡,然后在 1 个月、6 个月、12 个月时,用同一处窗边光线拍下宝宝的眼睛。多数家庭会看到虹膜在这段时间里明显变深,少数不会。无论哪种,你最后留下的记录都比最初那个百分比更有意思。

Third, spend accordingly. Because a large share of babies change color in the first year, buy neutral hats and blankets rather than a wardrobe keyed to “brown eyes”. For the deeper explanation of why newborns look blue and where the chart’s assumptions break, read our companion guide, Eye Color Predictor: How It Works & How Accurate Is It?. To test several single-gene traits side by side, open the Trait Dominance Checker, which uses the same style of simplified model.

第三,按概率来花钱。因为相当一部分宝宝会在第一年变色,买中性的帽子和包被就好,不必按“棕眼”配色置装。若想深入了解新生儿为什么看起来是蓝眼、图表的假设在哪里失效,可以读配套指南 眼睛颜色预测:原理与准确度详解。若想把几个单基因性状放在一起比较,可以打开 性状显隐性检测器,它用的是同一类简化模型。

One last note: keep the tool in proportion. It is a two-minute curiosity that happens to be arithmetically honest, not a prenatal test, and the sources below are the ones we checked the claims against.

最后一点:把它放在合适的位置。它是一个两分钟的好奇心工具,只是在算术上诚实,并不是产前检测;下面列出的来源就是我们核对文中说法时使用的资料。