pypedigree

Help and tutorial

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

  1. 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.
  2. Under Or try an example, click Phenotypes and polygenic score. The file appears in the text box and its drawing below it.
  3. 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.
  4. Hover over a symbol to read all its values. Click it to highlight its parents, children and siblings; click the background to reset.
  5. Under 2. Options, choose Horizontal bands: each phenotype is now a band across the symbol, the layout used beyond four phenotypes.
  6. Edit the text: change the sex of individual 004 (fifth column) from 2 to 1. The circle becomes a square as you type.
  7. Click Download PNG for a picture, or Download SVG for a drawing you can zoom or edit in Inkscape or Illustrator.
  8. 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:

ColumnContentValues
1Family IDany text
2Individual ID, unique in the familyany text
3Father’s IDan ID, or 0 if unknown
4Mother’s IDan ID, or 0 if unknown
5Sex1 male, 2 female, 0 unknown
6Affected status1 unaffected, 2 affected, 0 unknown

With a header line, columns are found by name, in any order, and more can be added:

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 seeIt means
Square, circle, diamondMale, female, sex unknown (or non-binary)
Filled symbol, band or quadrantAffected (for that phenotype); white: unaffected; grey: unknown
Diagonal line through the symbolDeceased
Arrow with “P”Proband (the index case); an arrow alone marks the consultand
Horizontal line between two symbolsA couple; a double line marks a consanguineous couple
Children hanging from one lineA sibship, in birth order when birth dates are given
Two lines from one pointTwins; a bar between the lines: monozygotic
“P”, “D” or “S” in the middle of a symbolA pregnancy, a gamete donor, a surrogate
Asterisk beside the lower rightDocumented evaluation, records reviewed
A number or “n” inside a symbolSeveral individuals (siblings) drawn as one
Vertical line through a symbolAsymptomatic or presymptomatic carrier
Short line ending in one or two barsNo children: by choice (one bar) or infertility (two); under a couple's line for the couple
White band or quadrant crossed by a thin diagonalThe phenotype does not apply to that person (N/A)
Hatched symbol or sectionCarrier; wider hatching: obligate carrier (NSGC 2022). Each gene has its own pattern in the legend
Bell curve beside a symbolPolygenic 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 arcIn 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 outlineA 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

Saving the drawing

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.