Skip to content
JiMousePublic

About

Integrated tool to build efficiently a genetic pedigree, a boadicea file and generate the corresponding clinical story [english/french]. Outil intégré pour construire efficacement un pedigree génétique, un fichier boadicea et générer l'histoire clinique correspondante. Disponible en français et en anglais.

Topics

Resources

Stars

11 stars

Watchers

2 watching

Forks

Repository files navigation

GeneTree

https://jimouse.github.io/GeneTree/

GeneTree is an integrated tool for clinical geneticists and genetic counsellors, in French and English. It builds a pedigree quickly, exports it to the usual formats and writes the family-history text of the consultation letter. It has a dedicated mode for cancer genetics consultations and an HPO-based mode.

GeneTree est un outil intégré pour les généticiens cliniciens et les conseillers en génétique, en français et en anglais. Il permet de construire rapidement un arbre généalogique, de l'exporter dans les formats usuels et de générer le texte de l'histoire familiale du compte rendu. Il dispose d'un mode dédié à l'oncogénétique et d'un mode basé sur HPO.

Features

  • Family table and pedigree drawing, interconnected. A family is loaded from a file (JSON, BOADICEA, CanRisk, PED), created from a standard or custom structure, then completed in a spreadsheet-like table or directly on the drawing.
  • A table that works like a spreadsheet: keyboard editing, copy and paste with Excel, undo and redo, rows moved by dragging, lists for sex and options, a cancer or HPO picker for diseases.
  • Family history in free text: in New family, a text such as "Elle a 2 sœurs dont une décédée d'un cancer du sein à 45 ans. Sa mère : K ovaire à 52 ans, DCD à 60 ans. Il a un demi-frère paternel." is turned into rows of the table: siblings, half-siblings, children, parents, grandparents, uncles and aunts (and the children of a named relative: nephews, cousins, grandchildren), with their diseases and ages at diagnosis (cancers mapped to the table's cancer list; "deux mélanomes, le premier à 56 ans, le second en 2022"), death and age, twins ("sa sœur jumelle", "de vrais jumeaux"), and the index case's identity ("Madame DUPONT Marie, née le 21/11/1960"). A letter pasted from a PDF, with lines cut in the middle of sentences, is read as it is. Analyser shows what will be added or changed; Ajouter à l'arbre applies it. The text is read in the browser by js/text-family.js, with rules, without any model or server; what cannot be placed (a relative without a side, a cousin with no parent named…) is listed for entry in the table.
  • Automatic text: the personal and family history is written from the table, in French or English.
  • Exports: GeneTree JSON, TSV, PED, BOADICEA, CanRisk, GEDCOM, pedigreejs JSON; the drawing as SVG, image or PDF (print).
  • Patient interface (docs/patient.html): a form the patient fills in before the consultation, on a computer or a phone, with the pedigree drawn beside it as they answer. It produces a GeneTree file that the patient sends to the practitioner, who opens it in the tool (and can export CanRisk from there).
  • Guide (docs/guide.html) and About (docs/about.html) pages.

Privacy

GeneTree is a static site: everything runs in the browser.

  • No data is sent to or stored on any server.
  • No third-party server is contacted: every library is served from this repository.
  • The tool keeps the family in the browser tab's session storage, which is cleared when the tab is closed.
  • The patient interface gives the patient files to download; how they reach the practitioner is the patient's and the department's choice.

Pages

Page Role
index.html The tool: table, pedigree, text, exports
docs/patient.html Patient interface
docs/guide.html, docs/about.html Guide and description
tool.html, docs/user-interface.html Former addresses: they forward to the tool and to the patient interface

Code

  • js/data-grid.js: the tool's table (DataGrid), a dependency-free spreadsheet.
  • js/person-table.js: the patient interface's cards (PersonTable).
  • js/main.js, js/main_front.js, js/hotTable.js, js/indexWidgets.js: the tool's logic (families, table rules, exports).
  • js/text-family.js: reads a free-text family history (French or English): parseFamilyText() finds the relatives and what is said of them, planFamilyText() gives the new table and the preview.
  • js/user-interface.js: the patient interface's logic.
  • js/pedigree.js, js/widgets.js, js/io.js, js/canrisk_file.js…: pedigree drawing and file formats, from pedigreejs.
  • lang/: texts and text generation in French (*.fr.js) and English (*.eng.js).
  • package/: third-party libraries, served locally.

Tests

The tests drive the pages in a real browser (Playwright) with the mouse and keyboard, and check what the pages produce. See the README in each folder.

  • tests/tool-page/: the fixed bugs, the table's spreadsheet features and the free-text family history.
  • tests/patient-page/: the fixed bugs, the questionnaire and the live pedigree.
  • tests/language/: the language switch on every page.
npm install playwright && npx playwright install chromium   # once
python3 -m http.server 8000                                 # from the folder that contains GeneTree/
node tests/tool-page/grid_features.js http://localhost:8000/GeneTree/

Based on

  • pedigreejs: pedigree drawing and the BOADICEA / CanRisk formats
  • HPO translations and ORPHAdata: phenotype and disease lists
  • jQuery, jQuery UI, Bootstrap, d3 and Font Awesome

Until November 2026 the tables were built with Handsontable. They are now GeneTree's own code (js/data-grid.js, js/person-table.js), and Handsontable is no longer part of the repository.

Authors and licence

GeneTree is developed and maintained by Dr Jean-Marie Ravel, with the participation of the clinical genetics team of the CHRU de Nancy (France).

GeneTree's own code is released under the GPL-3.0 licence. The libraries in package/ keep their own licences.

About

Integrated tool to build efficiently a genetic pedigree, a boadicea file and generate the corresponding clinical story [english/french]. Outil intégré pour construire efficacement un pedigree génétique, un fichier boadicea et générer l'histoire clinique correspondante. Disponible en français et en anglais.

Topics

Resources

Stars

11 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages