summaryrefslogtreecommitdiff
path: root/topics/database/mariadb-database-architecture.gmi
diff options
context:
space:
mode:
authorPjotr Prins2024-06-30 07:47:08 -0500
committerPjotr Prins2024-06-30 07:47:08 -0500
commit67b716d597098e9e7757bdd160792e80330b26de (patch)
tree86afeba16ca7a001cc8d0543642f9588ad6ea67c /topics/database/mariadb-database-architecture.gmi
parent97c23a708edae008aa1b0ed02ec027956b867e1c (diff)
downloadgn-gemtext-67b716d597098e9e7757bdd160792e80330b26de.tar.gz
DB: some edits
Diffstat (limited to 'topics/database/mariadb-database-architecture.gmi')
-rw-r--r--topics/database/mariadb-database-architecture.gmi14
1 files changed, 13 insertions, 1 deletions
diff --git a/topics/database/mariadb-database-architecture.gmi b/topics/database/mariadb-database-architecture.gmi
index b5954f9..2c81f3b 100644
--- a/topics/database/mariadb-database-architecture.gmi
+++ b/topics/database/mariadb-database-architecture.gmi
@@ -5,6 +5,10 @@ We are increasingly moving material out into lmdb (genotypes and phenotypes) and
In this document we'll discuss where things are, where they ought to go, and how the nomenclature should change.
+An SVG of the SQL layout can be found here
+
+=> https://raw.githubusercontent.com/genenetwork/gn-gemtext-threads/main/topics/database/sql.svg
+
# Nomenclature
These are the terms we use
@@ -144,7 +148,15 @@ All *Data tables are large
## Tables containing trait values
-One of the more problematic aspects of GN is that there are two tables containing trait values. ProbeData contains expression data. ProbeSetData contains both 'classical' phenotypes and mRNA.
+A trait on GN is defined by a trait-id with a dataset-id.
+
+=> https://genenetwork.org/show_trait?trait_id=10031&dataset=BXDPublish
+
+The trait-id can also be a probe name
+
+=> https://genenetwork.org/show_trait?trait_id=1441566_at&dataset=HC_M2_0606_P
+
+One of the more problematic aspects of GN is that there are two tables containing trait values (actually there are three!). ProbeSetData mostly contains expression data. PublishData contains 'classical' phenotypes. ProbeData is considered defunct.
```
MariaDB [db_webqtl]> select * from ProbeSetData limit 5;