This page draws a pedigree from a pedigree file, with the standard nomenclature, several phenotypes per individual and polygenic scores. It runs the pypedigree Python package inside your browser, with Pyodide.
Your data
The page downloads the program once (Pyodide from cdn.jsdelivr.net, pypedigree from this site). After that, everything happens on your computer: the file you open or paste is read by your browser and drawn there. It is never uploaded, and nothing is stored once you close the page. There is no account, no cookie and no analytics.
Tutorial: your first pedigree
- Open the app and wait for “Ready” under 3. Pedigree. The first visit takes a few seconds while the program downloads; later visits are faster.
- Under Or try an example, click Phenotypes and polygenic score. The file appears in the text box and its drawing below it.
- Look at the drawing. Individual 001, with an arrow and a “P”, is the proband. Each symbol is cut in four, one quadrant per phenotype, and the key at the top of the legend says which quadrant is which. ASD and ADHD are coloured when present and white when absent; IQ and SRS are shaded from white (lowest value in the family) to full colour (highest), with the value written in the quadrant. The bell curve beside each symbol places their polygenic score within the family.
- Hover over a symbol to read all its values. Click it to highlight its parents, children and siblings; click the background to reset.
- Under 2. Options, choose Horizontal bands: each phenotype is now a band across the symbol, the layout used beyond four phenotypes.
- Edit the text: change the sex of individual 004 (fifth column) from 2 to 1. The circle becomes a square as you type.
- Click Download PNG for a picture, or Download SVG for a drawing you can zoom or edit in Inkscape or Illustrator.
- Now open your own file with Open a file…, by dropping it on the text box, or by pasting it.
Each example has its own address, which opens the page on it: for instance
?example=quadrants after the page's
address. Clicking an example puts it in the address bar, ready to share.
The pedigree file
One line per individual, columns separated by tabs, commas or spaces (detected
automatically). The six standard columns, as in PLINK .ped and
.fam files:
| Column | Content | Values |
|---|---|---|
| 1 | Family ID | any text |
| 2 | Individual ID, unique in the family | any text |
| 3 | Father’s ID | an ID, or 0 if unknown |
| 4 | Mother’s ID | an ID, or 0 if unknown |
| 5 | Sex | 1 male, 2 female, 0 unknown |
| 6 | Affected status | 1 unaffected, 2 affected, 0 unknown |
With a header line, columns are found by name, in any order, and more can be added:
dob(birth date, orders siblings),twins(MZ:id,DZ:idorTW:id),deceased(1),proband(1),consultand(1).- Phenotypes: any other column. A prefix chooses how it is drawn:
b_affected or not (2 affected, 1 unaffected, 0 unknown),g_shaded from white to colour,gi_the reverse,c_one colour per category,o_a coloured outline (one pero_column an individual is affected in, inner first). Without a prefix, the column’s values decide. Missing values (-9,NA, empty) are drawn grey with “NA”;N/A(ornot_applicable) marks a phenotype that cannot apply to that person, drawn white and crossed. - Polygenic scores: columns whose name starts with
PGS. - Carriers: a
carriercolumn, or onecr_column per gene (cr_CFTR): 1 carrier, 2 obligate carrier (as declared; it is not inferred). - Annotations:
a_columns, written below the ID. - Standard notation:
pregnancy,adopted,childless(choice:<ID>for a couple),art,gender_identity,evaluated,count(several individuals in one symbol),asymptomatic.
A file saved by the CanRisk tool (first line ##CanRisk 4.0) is read as it
is: cancers, gene test results, ages and polygenic risk scores are drawn (see the
“CanRisk file” example). So is a GA4GH Phenopackets v2 Family or
Pedigree (.json): persons, sex, affected status, proband and
deaths.
A parent named in a column but with no line of their own is drawn with a dashed outline, and a warning says so. The full description, with every code, is in the documentation.
Reading the drawing
| You see | It means |
|---|---|
| Square, circle, diamond | Male, female, sex unknown (or non-binary) |
| Filled symbol, band or quadrant | Affected (for that phenotype); white: unaffected; grey: unknown |
| Diagonal line through the symbol | Deceased |
| Arrow with “P” | Proband (the index case); an arrow alone marks the consultand |
| Horizontal line between two symbols | A couple; a double line marks a consanguineous couple |
| Children hanging from one line | A sibship, in birth order when birth dates are given |
| Two lines from one point | Twins; a bar between the lines: monozygotic |
| “P”, “D” or “S” in the middle of a symbol | A pregnancy, a gamete donor, a surrogate |
| Asterisk beside the lower right | Documented evaluation, records reviewed |
| A number or “n” inside a symbol | Several individuals (siblings) drawn as one |
| Vertical line through a symbol | Asymptomatic or presymptomatic carrier |
| Short line ending in one or two bars | No children: by choice (one bar) or infertility (two); under a couple's line for the couple |
| White band or quadrant crossed by a thin diagonal | The phenotype does not
apply to that person (N/A) |
| Hatched symbol or section | Carrier; wider hatching: obligate carrier (NSGC 2022). Each gene has its own pattern in the legend |
| Bell curve beside a symbol | Polygenic score: the mark shows where the individual stands in the population, read as a z-score; dotted lines mark ±2 SD (Polygenic score position changes this) |
| Same individual twice, joined by a dotted arc | In a pedigree with loops (for example two marriages between the same two families), someone is drawn a second time next to their partner, so that no lines cross. It is one person |
| Dashed outline | A parent with no line in the file, or an individual marked
not_sampled |
The legend under the drawing lists every phenotype, its colours and every carrier pattern used.
Options
- Family: a file with several families draws them side by side; choose one to draw it alone.
- Phenotypes: quadrants up to four phenotypes and bands beyond (the default), quadrants only, or horizontal bands. Autism, ADHD, intellectual disability and epilepsy take their conventional quadrant and colour.
- Polygenic score position: z-score (the default), min–max within the pedigree for raw scores, or percentile.
- Carrier notation: the NSGC 2022 patterns, or the earlier half-filled symbol and centre dot.
- Polygenic score values: write each score's value beside its marker (a z-score such as +2.1, a percentile, or the value itself), in its colour.
- Smallest text: no text smaller than this, in points at the drawing's size: notes, annotations, values in the symbols, “PGS” captions and the legend are raised to it. Journals often ask for 6 pt.
- Advanced style: any option of a pypedigree style file, as JSON (colours,
font size, spacing, other names for the columns with
phenotype_labels, a full legend with"legend": "full"…). See the style reference.
Saving the drawing
- SVG (interactive): opens in any browser with the tooltips, highlighting and zoom of the page. It can be shared or put on a web page.
- SVG (for print): the same drawing without the script, for Inkscape, Illustrator or a journal.
- PNG: a picture at 150, 300 or 600 dpi. Very large pedigrees at high resolution can exceed what the browser accepts; use the SVG then.
What the app does not do
The circular layout, PDF output, a separate phenotype or annotation file, and batch use are
in the Python package (pip install pypedigree), described in the
documentation. The app draws pedigrees; it does not edit them, store
them or compute risks.
Browsers
Any recent version of Firefox, Chrome, Edge or Safari, on a computer or a tablet. The page needs WebAssembly, which these browsers all have, and an internet connection the first time it loads.
Citing and support
pypedigree is free software under the MIT licence, from the Bourgeron lab, Institut Pasteur. Cite the archived software: doi:10.5281/zenodo.24289471 (all versions). Questions, problems and suggestions: GitHub issues.