Mendelian Inheritance Pedigree

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

This Demonstration lets you vary the genotypes of both first-generation parents. Based on the genotypes, a Punnett square shows all possible genotypes for their children. A two-generation pedigree is also shown; the genders of the children are decided randomly and the genotypes are assigned using a weighted probability based on the parents' genotypes. Depending on the mode of inheritance selected (autosomal dominant or recessive), a disease phenotype is associated with a genotype that carries negative alleles.

Contributed by: Tushar Dwivedi (July 2014)
(Mathematica Summer Camp 2014)
Open content licensed under CC BY-NC-SA



The choices for the alleles define the genotypes for the first-generation parents. There are many modes of gene inheritance; the most common ones include autosomal recessive and autosomal dominant. Other modes include sex-linked inheritance and mitochondrial inheritance. To induce disease-like phenotypes, many genes are typically involved; this Demonstration displays a basic Mendelian inheritance mode, assuming Mendel's laws. In the autosomal recessive inheritance mode, two copies of a disease allele "a" are required to inherit the disease: "aa". On the other hand, having just one negative allele, "Aa", or not having any, "AA", leads to a healthy individual. In the autosomal dominant inheritance mode, only one negative allele "A" is required to inherit the disease. Thus, "AA" and "Aa" are both disease-causing genotypes, while "aa" would give a healthy individual.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.