1. What this tool does and who it is for
一、这个工具做什么、适合谁用
The input is four dropdowns: the mother’s ABO group, the father’s ABO group, and each parent’s Rh factor. There is no name, no email, no upload and no account. Pressing Calculate calls bloodType() in js/tools-genetics.js, which parses the two inputs, builds an ABO key and an Rh key, and returns two independent distributions: one for the ABO group and one for Rh. Both lists total 100%, and every number is computed on your device.
输入只有四个下拉框:妈妈的 ABO 血型、爸爸的 ABO 血型,以及双方的 Rh 因子。不填姓名、不要邮箱、不上传、不需要账号。点击“计算”会调用 js/tools-genetics.js 中的 bloodType(),解析两项输入,分别构造 ABO 键与 Rh 键,返回两个独立的分布:一个属于 ABO 血型,一个属于 Rh。两份列表各自合计 100%,所有计算都在你的设备上完成。
Three kinds of visitors use it. Expectant parents are curious what the baby’s card will say and want to prepare for the newborn screening conversation. Couples where one partner is Rh negative want to understand why the clinic keeps mentioning anti-D injections. Students and teachers want a compact ABO example they can reproduce with a Punnett square. What none of them should use it for is paternity questions or any medical decision.
三类人会用它。准父母好奇宝宝的血型卡会写什么,也想提前了解新生儿筛查时要问什么。一方 Rh 阴性的伴侣想弄明白,为什么产检总在提抗 D 免疫球蛋白。学生和老师想要一个能用旁氏表复算的 ABO 小例子。但任何人都不该把它用于亲子鉴定或任何医疗决定。
One structural detail matters for reading the output: ABO and Rh are inherited independently, so the tool does not multiply them into eight combined answers. It shows “Type A 75% / Type O 25%” and “Rh+ 75% / Rh− 25%” separately. If you want a joint figure, multiply the two probabilities — 75% × 75% gives about 56% for “A positive” in that example — but do not read the two bars as a single combined certainty.
读结果时要注意一个结构细节:ABO 与 Rh 独立遗传,所以工具不会把它们乘成八个组合答案,而是分别显示“A 型 75% / O 型 25%”和“Rh+ 75% / Rh− 25%”。若想要联合概率,把两个概率相乘即可——上例中 75% × 75% 约为 56% 的“A 阳性”——但不要把两条进度条读成一个合并的确定结论。
2. The genetics behind the numbers
二、数字背后的遗传学
ABO blood groups come from a single gene on chromosome 9 with three common alleles: A, B and O. A and B are codominant — a person carrying both shows both markers — while O is recessive and produces no active A or B antigen. That gives six genotypes and four phenotypes: AA or AO is type A, BB or BO is type B, AB is type AB, and OO is type O.
ABO 血型来自 9 号染色体上的一个基因,常见等位基因有三个:A、B、O。A 与 B 为共显性——同时携带两者的人会同时表达两种抗原——O 为隐性,不产生有活性的 A 或 B 抗原。于是有六种基因型、四种表型:AA 或 AO 为 A 型,BB 或 BO 为 B 型,AB 为 AB 型,OO 为 O 型。
The Rh system is a separate gene (RHD on chromosome 1). For this teaching model it behaves like a simple dominant trait: Rh+ is dominant (DD or Dd) and Rh− is recessive (dd). An Rh− child therefore needs a d allele from each parent. Two Rh+ parents can still have an Rh− baby if both are Dd, which is why the tool reports 75% / 25% rather than 100% / 0%.
Rh 系统是另一个基因(1 号染色体上的 RHD)。在本教学模型中,它表现为简单的显性性状:Rh 阳性为显性(DD 或 Dd),Rh 阴性为隐性(dd)。因此 Rh 阴性宝宝需要从父母各得到一个 d。两位 Rh 阳性父母如果都是 Dd,仍可能生出 Rh 阴性宝宝——这也是工具显示 75% / 25% 而不是 100% / 0% 的原因。
| Phenotype | Possible genotypes | What the tool assumes |
|---|---|---|
| Type A | AA or AO | AO (heterozygous) |
| Type B | BB or BO | BO (heterozygous) |
| Type AB | AB | AB |
| Type O | OO | OO |
| Rh positive | DD or Dd | Dd (heterozygous) |
| Rh negative | dd | dd |
| 表型 | 可能的基因型 | 工具采用的假设 |
|---|---|---|
| A 型 | AA 或 AO | AO(杂合) |
| B 型 | BB 或 BO | BO(杂合) |
| AB 型 | AB | AB |
| O 型 | OO | OO |
| Rh 阳性 | DD 或 Dd | Dd(杂合) |
| Rh 阴性 | dd | dd |
That assumption is the single most important caveat. A type A parent might be AA, in which case every child gets an A and the O possibility disappears. Because the form cannot see the genotype, the tool deliberately picks the heterozygous version, which keeps every branch that is biologically possible. The result is therefore an “upper bound on variety”, not a measurement of your family.
这个假设是全篇最重要的前提。A 型父母可能是 AA,那样每个孩子都会得到一个 A,O 型的可能性就消失了。由于表单看不到基因型,工具刻意采用杂合版本,从而保留所有生物学上可能的分支。因此结果是“可能性的上界”,而不是对你家庭的测量。
Here is the complete ABO table the code implements, assuming the heterozygous genotype wherever one exists:
下面是代码实际实现的完整 ABO 表——只要存在杂合可能,就采用杂合基因型:
| Parents | Assumed cross | A | B | AB | O |
|---|---|---|---|---|---|
| O × O | OO × OO | 0% | 0% | 0% | 100% |
| O × A | OO × AO | 50% | 0% | 0% | 50% |
| O × B | OO × BO | 0% | 50% | 0% | 50% |
| O × AB | OO × AB | 50% | 50% | 0% | 0% |
| A × A | AO × AO | 75% | 0% | 0% | 25% |
| A × B | AO × BO | 25% | 25% | 25% | 25% |
| A × AB | AO × AB | 50% | 25% | 25% | 0% |
| B × B | BO × BO | 0% | 75% | 0% | 25% |
| B × AB | BO × AB | 25% | 50% | 25% | 0% |
| AB × AB | AB × AB | 25% | 25% | 50% | 0% |
| 父母 | 假定的杂交 | A | B | AB | O |
|---|---|---|---|---|---|
| O × O | OO × OO | 0% | 0% | 0% | 100% |
| O × A | OO × AO | 50% | 0% | 0% | 50% |
| O × B | OO × BO | 0% | 50% | 0% | 50% |
| O × AB | OO × AB | 50% | 50% | 0% | 0% |
| A × A | AO × AO | 75% | 0% | 0% | 25% |
| A × B | AO × BO | 25% | 25% | 25% | 25% |
| A × AB | AO × AB | 50% | 25% | 25% | 0% |
| B × B | BO × BO | 0% | 75% | 0% | 25% |
| B × AB | BO × AB | 25% | 50% | 25% | 0% |
| AB × AB | AB × AB | 25% | 25% | 50% | 0% |
Each row sums to 100%. The Rh table is shorter: Rh+ × Rh+ gives 75% Rh+ and 25% Rh−, Rh+ × Rh− gives an even 50/50, and Rh− × Rh− gives 100% Rh−. Those figures assume the Rh+ parent is Dd; a DD parent would shift the first two rows toward 100% Rh+.
每一行都合计 100%。Rh 表更短:Rh+ × Rh+ 给出 75% Rh+ 与 25% Rh−,Rh+ × Rh− 为对半的 50/50,Rh− × Rh− 为 100% Rh−。这些数字假定 Rh 阳性一方是 Dd;若为 DD,前两行会向 100% Rh+ 偏移。
3. A worked example you can check by hand
三、可以手工复算的算例
Take mother A and father B, the most interesting row in the table. Both are assumed heterozygous: the mother is AO and the father is BO. A Punnett square of AO × BO has four cells — AB, AO, BO and OO — each equally likely. AB shows both antigens (type AB), AO is type A, BO is type B, and OO is type O. That is 25% for each of the four groups, and it is exactly what the tool prints.
取妈妈 A 型、爸爸 B 型——整张表里最有意思的一行。假设双方均为杂合:妈妈 AO,爸爸 BO。AO × BO 的旁氏表有四个格子——AB、AO、BO、OO——各占四分之一。AB 同时表达两种抗原(AB 型),AO 为 A 型,BO 为 B 型,OO 为 O 型。四种各 25%,与工具输出完全一致。
| Mother / Father | B (from father) | O (from father) |
|---|---|---|
| A (from mother) | AB → type AB | AO → type A |
| O (from mother) | BO → type B | OO → type O |
| 妈妈 / 爸爸 | 来自爸爸的 B | 来自爸爸的 O |
|---|---|---|
| 来自妈妈的 A | AB → AB 型 | AO → A 型 |
| 来自妈妈的 O | BO → B 型 | OO → O 型 |
One cell of each kind, so 25% for A, B, AB and O. Now run the two-A-parent case to see where 75% comes from: AO × AO gives AA, AO, AO and OO — three cells that show type A and one that shows type O. That is 75% A and 25% O, the row the tool prints for A × A.
每种格子各一个,因此 A、B、AB、O 各 25%。再看两位 A 型父母的情况,就知道 75% 是怎么来的:AO × AO 得到 AA、AO、AO、OO——三个格子表现为 A 型,一个表现为 O 型。也就是 75% A、25% O,正是工具为 A × A 打印的那一行。
Now add Rh. Mother Rh+ (Dd) × father Rh− (dd) gives Dd and dd in equal parts: 50% Rh+ and 50% Rh−. Combining with the ABO result, “A positive” is 25% × 50% = 12.5% for one child. This multiplication is valid because the two genes sit on different chromosomes and assort independently — but it is a joint probability, not a new certainty.
再叠加 Rh。妈妈 Rh+(Dd)× 爸爸 Rh−(dd)得到等量的 Dd 与 dd:50% Rh+、50% Rh−。与 ABO 结果合并,“A 阳性”对单个孩子的概率是 25% × 50% = 12.5%。这个乘法成立,是因为两个基因位于不同染色体、独立分配——但它仍是联合概率,不是新的确定结论。
4. How to read the result without over-reading it
四、怎么读结果,避免过度解读
Every percentage is a per-child chance, not a population frequency and not a promise. “25% type O” means that if these two parents had many children, roughly one in four would be O; with one baby you get exactly one outcome, and the 25% branch can happen on the first try. A low number is small, not impossible.
每个百分比都是“单个孩子”的概率,不是人群比例,也不是承诺。“25% 为 O 型”的意思是:如果这对父母有很多孩子,大约四分之一会是 O 型;但只有一个孩子时你只会得到一个结果,而 25% 那条分支第一次就可能发生。数字小,不等于不可能。
Four misreadings show up repeatedly. First, adding the ABO and Rh bars together — they are separate systems, so “75%” and “75%” do not mean 150% of anything. Second, treating “Type A 75%” as “your baby is A”, when one in four is O. Third, forgetting the hidden-genotype assumption: an AA parent makes some branches impossible even though the tool still lists them. Fourth, using the output to question paternity — ABO inheritance is far too weak for that, and real parentage questions belong with accredited DNA testing and appropriate counselling.
有四种误读反复出现。第一,把 ABO 与 Rh 的条相加——它们是两个独立系统,“75%”加“75%”不表示任何东西的 150%。第二,把“A 型 75%”读成“宝宝一定是 A 型”,而四分之一是 O 型。第三,忘记隐藏基因型假设:AA 型父母会让某些分支实际不可能,但工具仍会列出。第四,用结果去质疑亲子关系——ABO 遗传远不足以做这件事,真正的亲子问题应交给有资质的 DNA 检测与相应咨询。
A useful habit: run the mirror case. Mother A × father B and mother B × father A must return identical numbers, because the code sorts the two groups before building the key. If they differ, you are looking at a stale form state, not a genetic effect.
一个好习惯:跑一次镜像组合。妈妈 A × 爸爸 B 与妈妈 B × 爸爸 A 必须返回完全相同的数字,因为代码在构造键之前会先对两组排序。若出现差异,那是表单状态残留,不是遗传效应。
5. Where the model stops: rare types, Rh in pregnancy and when to ask a clinician
五、模型的边界:罕见血型、孕期 Rh 与何时问医生
The chart covers the four common ABO groups and the Rh D antigen only. It says nothing about the many other blood group systems — Kell, Duffy, Kidd, MNS, Lewis and others — that matter for transfusions and for haemolytic disease of the newborn. It also omits rare ABO variants such as the Bombay phenotype, weakened A or B subgroups, and weak or partial D variants that can be typed differently by different labs.
这张表只覆盖四种常见 ABO 血型与 Rh D 抗原。它对输血和新生儿溶血病同样重要的其他血型系统——Kell、Duffy、Kidd、MNS、Lewis 等——完全没有涉及。它也忽略了罕见 ABO 变异,如孟买型、弱 A/弱 B 亚型,以及不同实验室可能给出不同结果的弱 D 或部分 D。
Rh deserves its own paragraph because it is the one place where this curiosity touches real care. If an Rh− mother carries an Rh+ baby, fetal red cells can trigger her immune system to make anti-D antibodies. That is usually harmless in a first pregnancy but can cause anaemia and jaundice in a later Rh+ pregnancy. Modern antenatal care prevents this with routine blood typing, an antibody screen, and anti-D immunoglobulin given at around 28 weeks and again within 72 hours after birth if the baby is Rh+. If you are Rh−, the important step is simply to tell your maternity team and attend those appointments — not to calculate your way around them.
Rh 值得单独一段,因为这是这个“好奇心工具”唯一真正触及临床的地方。如果 Rh 阴性妈妈怀的是 Rh 阳性宝宝,胎儿的红细胞可能刺激她的免疫系统产生抗 D 抗体。这在第一次妊娠中通常无害,但在之后怀 Rh 阳性宝宝时可能造成贫血与黄疸。现代产检用常规血型检测、抗体筛查,以及在约 28 周和产后 72 小时内(若宝宝 Rh 阳性)注射抗 D 免疫球蛋白来预防。如果你是 Rh 阴性,关键动作是告知产科团队并按时就诊——而不是靠计算绕开流程。
ABO incompatibility is a separate, usually milder story: a group O mother with a group A or B baby can pass anti-A or anti-B antibodies that cause jaundice in the first days. It is common, monitored with bilirubin checks, and treatable. Neither this tool nor its percentages can predict whether that will happen.
ABO 不合是另一件事,通常也更轻:O 型妈妈怀 A 型或 B 型宝宝时,可能把抗 A 或抗 B 抗体传给宝宝,在出生最初几天引起黄疸。它很常见,通过胆红素监测管理,并且可治疗。本工具及其百分比都无法预测它是否发生。
Talk to a clinician rather than the calculator if: you are Rh− and unsure about your anti-D schedule; a newborn looks deeply jaundiced or is unusually sleepy and feeds poorly; a blood type result seems to contradict a previous lab report; or anyone is considering using blood type to answer a family relationship question. Those are clinical or legal questions, not genetics-puzzle questions.
出现以下情况时该找医生而不是计算器:你是 Rh 阴性且不确定抗 D 注射安排;新生儿黄疸明显偏深、异常嗜睡或吃奶很差;某次血型结果与既往报告矛盾;或有人想用血型回答家庭关系问题。这些属于临床或法律问题,不是遗传学小谜题。
6. How to actually use it
六、实际怎么用
Three practical moves. First, write down the four inputs you used. A screenshot of the bars is not enough six months later, because the same parent pair can look different if you mis-remember one Rh sign.
三条可执行建议。第一,把用到的四项输入记下来。半年后只看进度条截图是不够的,因为记错一个 Rh 符号,同样的父母组合就会看起来不同。
Second, compare the prediction with the real report after birth. Newborn screening usually reports the baby’s ABO and Rh from cord blood or a heel prick. If the predicted “most likely” group does not match, that is not a failure of the tool — it is the 25% branch doing exactly what probability says it may.
第二,出生后把预测与真实报告对照。新生儿筛查通常用脐带血或足跟血报告宝宝的 ABO 与 Rh。如果预测的“最可能”与实际不符,那不是工具失灵——而是那条 25% 的分支按概率如约发生了。
Third, use it as a conversation starter, not a conclusion. If you are Rh−, bring the question to your antenatal appointment: “I’m Rh negative — is my anti-D schedule confirmed?” That single question is worth more than any percentage on this page. For the wider picture read our companion guide, how due dates are calculated, and try the Trait Dominance Checker for single-gene traits.
第三,把它当作话题引子,而不是结论。如果你是 Rh 阴性,把问题带到产检现场:“我是 Rh 阴性,抗 D 注射安排确认了吗?”这一个问题,比本页任何百分比都更有价值。若想看更完整的孕期计算,可读配套指南预产期是怎么算出来的;若想玩单基因性状,可试性状显隐性检测器。


