diff options
| author | Arun Isaac | 2026-10-09 00:26:00 +0100 |
|---|---|---|
| committer | Arun Isaac | 2026-10-09 01:36:35 +0100 |
| commit | 244a4821c89183dd6a953c790d4a953a66a8e4dd (patch) | |
| tree | b11c11fe773f854209bf577870a6f71fc0a64f28 /doc/domagi.dbk | |
| parent | 7802a6244ca6858c3e21e44b274c099075b32bcc (diff) | |
| download | domagi-244a4821c89183dd6a953c790d4a953a66a8e4dd.tar.gz domagi-244a4821c89183dd6a953c790d4a953a66a8e4dd.tar.lz domagi-244a4821c89183dd6a953c790d4a953a66a8e4dd.zip | |
Document database schema in the manual.
Diffstat (limited to 'doc/domagi.dbk')
| -rw-r--r-- | doc/domagi.dbk | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/domagi.dbk b/doc/domagi.dbk index 0888ac1..f2ef70d 100644 --- a/doc/domagi.dbk +++ b/doc/domagi.dbk @@ -5,6 +5,45 @@ <title>domagi manual</title> <copyright><year>2026</year><holder>Arun Isaac</holder></copyright> </info> +<chapter> + <title>Database Schema</title> + <para>domagi uses a SQL schema with the following four tables to represent a pangenome.</para> + <variablelist> + <varlistentry> + <term>segment</term> + <listitem><para>entity representing pangenome segments</para></listitem> + </varlistentry> + <varlistentry> + <term>link</term> + <listitem><para>many-to-many relation between segments representing pangenome links</para></listitem> + </varlistentry> + <varlistentry> + <term>path</term> + <listitem><para>entity representing pangenome paths</para></listitem> + </varlistentry> + <varlistentry> + <term>path_segment</term> + <listitem><para>many-to-many relation mapping paths to segments associating them with the path at a certain coordinate</para></listitem> + </varlistentry> + </variablelist> + <para>The schema and the entity relationship diagram are visualized in <xref linkend="schema" /> and <xref linkend="er" /> respectively.</para> + <figure xml:id="schema"> + <title>domagi database schema</title> + <mediaobject> + <imageobject> + <imagedata fileref="schema.svg" scale="80" /> + </imageobject> + </mediaobject> + </figure> + <figure xml:id="er"> + <title>domagi entity relationship diagram in Chen's notation</title> + <mediaobject> + <imageobject> + <imagedata fileref="er.svg" scale="90" /> + </imageobject> + </mediaobject> + </figure> +</chapter> <reference> <title>Reference</title> <xi:include href="domagi-build.dbk" /> |
