about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-10-08 13:37:57 +0000
committerPjotr <wrk@bosa.lan>2026-10-08 13:37:57 +0000
commit2edc685bb7c56d5f9f28da09378f300bfe81021d (patch)
tree1120d7589a1143ef29a4f5d2e2a47437e8699552
parent208eeac395079f46fcbe07b4185524e017c554ef (diff)
downloadgenenetwork4-2edc685bb7c56d5f9f28da09378f300bfe81021d.tar.gz
* src/db.rs, src/routes: add mapping_method, tissue, /mapping-methods, /accessions.
Answers four more questions of aisearch's full_benchmark.csv from
tables the API did not expose.

* src/db.rs (Group, GroupDetail), src/routes/groups.rs: groups gain
`mapping_method`, the name of the MappingMethod row their
mapping_method_id points to (qtlreaper, Rqtl, ...), or null.
* src/db.rs (Dataset): datasets gain `tissue`, the Tissue their
ProbeFreeze points to (e.g. "Brain mRNA").
* src/routes/mapping_methods.rs: GET /mapping-methods lists the
MappingMethod table, including tools no group uses (PLINK, FastMap).
* src/routes/accessions.rs: GET /accessions/{accession} resolves a
GeneNetwork accession number (GN602, gn602 or 602) via InfoFiles to the
dataset's name, title, category (publish/probeset) and group.
* docs/genenetwork_datatypes.md: MappingMethodId is a key into the
MappingMethod table (the authoritative reading); GN2's code-based reading
is noted as superseded.

* tests/benchmark.rs, test/data/benchmark_search.json: add the 60 new
full-benchmark rows that pass (full rows 0..114; search rows run against
recorded production gn3, the rest need the database), and full rows 33
(mapping tools), 34 (Rqtl for outbred sets), 35 (GN602) and 44 (only
GTEx v8 has TPM datasets). The untested rows are listed in the file's
header comment with the reason for each.
* tests, test/python: tests for the new fields and endpoints; both
endpoints added to the OpenAPI and next-link crawl tests.
* README.md, RELEASE_NOTES.md: document the new fields and endpoints.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
-rw-r--r--README.md43
-rw-r--r--RELEASE_NOTES.md6
-rw-r--r--docs/genenetwork_datatypes.md5
-rw-r--r--src/db.rs139
-rw-r--r--src/lib.rs2
-rw-r--r--src/routes/accessions.rs116
-rw-r--r--src/routes/mapping_methods.rs49
-rw-r--r--src/routes/mod.rs2
-rw-r--r--test/data/benchmark_search.json717
-rw-r--r--test/python/test_accessions.py68
-rw-r--r--test/python/test_dataset_by_name.py13
-rw-r--r--test/python/test_envelope.py3
-rw-r--r--test/python/test_group_by_name.py10
-rw-r--r--test/python/test_groups.py22
-rw-r--r--test/python/test_mapping_methods.py46
-rw-r--r--tests/accessions.rs80
-rw-r--r--tests/benchmark.rs400
-rw-r--r--tests/dataset_by_name.rs28
-rw-r--r--tests/envelope.rs3
-rw-r--r--tests/group_by_name.rs23
-rw-r--r--tests/groups.rs29
-rw-r--r--tests/mapping_methods.rs31
-rw-r--r--tests/openapi.rs2
23 files changed, 1810 insertions, 27 deletions
diff --git a/README.md b/README.md
index d61dd96..73757a2 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,8 @@ A Rust/Axum-based API server for GeneNetwork.
 | GET    | `/species/{species}`                              | One species, by Name/FullName/SpeciesName.     |
 | GET    | `/species/{species}/datasets`                     | Expression (ProbeSet) datasets in a species.   |
 | GET    | `/groups`                                         | All groups (InbredSet rows); filterable.       |
+| GET    | `/mapping-methods`                                | The mapping tools (qtlreaper, Rqtl, ...).      |
+| GET    | `/accessions/{accession}`                         | Resolve a GN accession number (GN602).         |
 | GET    | `/groups/{group}`                                 | One group, by name or numeric Id.              |
 | GET    | `/groups/{group}/strains`                         | Strains/samples in a group.                    |
 | GET    | `/groups/{group}/case-attributes`                 | Case-attribute names and per-strain values.    |
@@ -125,13 +127,16 @@ Details, including example responses, below.
      "full_name": "BXD Family", "public": 2, "mapping_method_id": "1",
      "genetic_type": "riset",
      "family": "Reference Populations (replicate average, SE, N)",
-     "species": "mouse"},
+     "species": "mouse", "mapping_method": "qtlreaper"},
     ...
   ]
   ```
 
   `family` is the population category and `species` the species' short
-  name as `/species` lists it. Three optional filters, combined with
+  name as `/species` lists it. `mapping_method` is the name of the
+  mapping tool offered for the group (the `MappingMethod` row its
+  `mapping_method_id` points to, see `GET /mapping-methods`), null for a
+  group with none. Three optional filters, combined with
   AND and all case-insensitive: `family` (contains), `species` (exact
   short name) and `q` (contained in the name, display name or full
   name). For example `/groups?family=Reference Populations` lists the
@@ -158,7 +163,7 @@ Details, including example responses, below.
    "mapping_method_id": "1", "genetic_type": "riset",
    "family": "Reference Populations (replicate average, SE, N)",
    "family_order": 1, "menu_order_id": 0.0, "group_code": "BXD",
-   "description": "<p>...</p>"}
+   "description": "<p>...</p>", "mapping_method": "qtlreaper"}
   ```
 
   Needs `SQL_URI`, same as `/species` above.
@@ -294,11 +299,41 @@ Details, including example responses, below.
      "name2": "BXDMicroArray_ProbeSet_August03",
      "full_name": "Brain U74Av2 08/03 MAS5",
      "short_name": "Brain U74Av2 08/03 MAS5", "create_time": "2003-08-01",
-     "public": 0, "confidentiality": 0, "data_scale": "log2"},
+     "public": 0, "confidentiality": 0, "data_scale": "log2",
+     "tissue": "Brain mRNA"},
     ...
   ]
   ```
 
+  `tissue` is what the dataset was measured in (the `Tissue` its
+  `ProbeFreeze` points to), also on `GET /datasets/{dataset}` and
+  `GET /species/{species}/datasets`.
+
+- `GET /mapping-methods` - the mapping tools GeneNetwork offers, the
+  `MappingMethod` table in id order: `qtlreaper`, `Rqtl`, `HappyR`,
+  `PLINK` and `FastMap`. It includes tools no group currently uses
+  (PLINK, FastMap); a group's `mapping_method` (see `GET /groups`)
+  names the one offered for it. Needs `SQL_URI`, same as `/species`
+  above.
+
+  ```json
+  [{"id": 1, "name": "qtlreaper"}, {"id": 2, "name": "Rqtl"}, ...]
+  ```
+
+- `GET /accessions/{accession}` - resolves a GeneNetwork accession
+  number, the "GN602" of a dataset's page, with or without the `GN`
+  prefix. It names the dataset (`InfoFiles.InfoPageName`), its page
+  title, its `category` (`publish` for a phenotype dataset, `probeset`
+  for an expression dataset, null if the name matches neither) and the
+  `group` it belongs to. 400 if the text is not a number, 404 if no
+  dataset has the accession. Needs `SQL_URI`, same as `/species` above.
+
+  ```json
+  {"accession": 602, "name": "BXDPublish",
+   "title": "BXD Published Phenotypes", "category": "publish",
+   "group": "BXD"}
+  ```
+
 - `GET /publications/{pubmed_id}/traits` - returns every published
   (phenotype) trait, across groups, whose publication has this PubMed
   id (the same fields as `/groups/{group}/traits`). 404 if no
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 03bf34b..7f437d4 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -23,6 +23,12 @@
 
 ### Added
 
+- Groups gain `mapping_method` (the name of the mapping tool offered
+  for them: the `MappingMethod` row `mapping_method_id` points to), and
+  datasets gain `tissue` (the `Tissue` their `ProbeFreeze` points to).
+- `GET /mapping-methods` lists the mapping tools (the `MappingMethod`
+  table); `GET /accessions/{accession}` resolves a GeneNetwork
+  accession number such as GN602 to its dataset, category and group.
 - `src/response.rs`: `Envelope`, `Meta`, `State` and the `Ctx`
   extractor handlers use to build a response (`ctx.envelope(data)`).
 - `GET /publications/{pubmed_id}/traits`: the published traits a
diff --git a/docs/genenetwork_datatypes.md b/docs/genenetwork_datatypes.md
index 495a8c3..0189ba2 100644
--- a/docs/genenetwork_datatypes.md
+++ b/docs/genenetwork_datatypes.md
@@ -144,7 +144,7 @@ populations -- so "RISet" is a slight misnomer for the general case).
 | `SpeciesId`       | FK to `Species.SpeciesId`; every group belongs to exactly one species (see Species section above).                                                                                                                                                        |
 | `FullName`        | Longer descriptive name, e.g. "BXD RI Family", "BXD Family".                                                                                                                                                                                              |
 | `public`          | Numeric visibility/access level (values 0-2 seen in example data); exact threshold semantics not found documented in these repos.                                                                                                                         |
-| `MappingMethodId` | Selects which mapping tools are offered for the group: `"1"` = GEMMA + QTLReaper + R/qtl, `"2"` = GEMMA only, `"3"` = R/qtl only, `"4"` = GEMMA + PLINK, anything else = none (`genenetwork2/gn2/base/data_set/datasetgroup.py`'s `get_mapping_methods`). |
+| `MappingMethodId` | Key into the `MappingMethod` table (`Id`, `Name`): 1 `qtlreaper`, 2 `Rqtl`, 3 `HappyR`, 4 `PLINK`, 5 `FastMap`; null means no mapping tool is offered. This is the authoritative reading, and the one genenetwork4 uses (`mapping_method` is the table's name for the id; `GET /mapping-methods` lists the table). Queried live: 58 groups use 1, 20 use 2, 2 use 3, 22 have none; PLINK and FastMap are defined but unused. GeneNetwork2's `get_mapping_methods` (`gn2/base/data_set/datasetgroup.py`) instead treats the id as a code for a set of tools ("1" = GEMMA + QTLReaper + R/qtl, "2" = GEMMA only, ...); that reading is superseded and is not followed here. |
 | `GeneticType`     | The breeding scheme, e.g. "riset" (recombinant inbred strains, as in BXD) or "intercross" (e.g. F2/AIL populations).                                                                                                                                      |
 | `Family`          | Loose grouping across groups, parallel to `Species.Family`.                                                                                                                                                                                               |
 | `FamilyOrder`     | Sort order within `Family` for menu display (note: unlike `Species.FamilyOrderId`, this column has no `Id` suffix).                                                                                                                                       |
@@ -194,7 +194,8 @@ populations -- so "RISet" is a slight misnomer for the general case).
   matched against `InbredSetName`, `Name` or `FullName`, optionally also
   scoped to a species). `gn2/base/data_set/datasetgroup.py`'s
   `DatasetGroup` class additionally resolves a group's available mapping
-  methods from `MappingMethodId`.
+  methods from `MappingMethodId`, by its own code table rather than the
+  `MappingMethod` table (see the `MappingMethodId` field above).
 - **GeneNetwork3**: no `InbredSet`-table REST endpoint or `gn3/db/`
   module was found for groups specifically (unlike `gn3/db/species.py`
   for species).
diff --git a/src/db.rs b/src/db.rs
index c6723ff..ba22811 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -181,6 +181,10 @@ pub struct Group {
     pub family: Option<String>,
     /// The species' short name, e.g. "mouse" (as listed by /species).
     pub species: Option<String>,
+    /// The mapping tool offered for the group, e.g. "qtlreaper" or
+    /// "Rqtl" (the MappingMethod row `mapping_method_id` points to; see
+    /// get_mapping_methods).
+    pub mapping_method: Option<String>,
 }
 
 /// Mirrors GeneNetwork2's wqflask.api.router.get_groups_list, plus the
@@ -192,8 +196,10 @@ pub fn get_all_groups() -> Result<Vec<Group>, mysql::Error> {
         "SELECT InbredSet.InbredSetId, InbredSet.SpeciesId, InbredSet.InbredSetName, \
                 InbredSet.Name, InbredSet.FullName, InbredSet.public, \
                 InbredSet.MappingMethodId, InbredSet.GeneticType, InbredSet.Family, \
-                Species.Name \
-         FROM InbredSet LEFT JOIN Species ON Species.Id = InbredSet.SpeciesId \
+                Species.Name, MappingMethod.Name \
+         FROM InbredSet \
+         LEFT JOIN Species ON Species.Id = InbredSet.SpeciesId \
+         LEFT JOIN MappingMethod ON MappingMethod.Id = InbredSet.MappingMethodId \
          ORDER BY InbredSet.Name ASC",
         |(
             id,
@@ -206,6 +212,7 @@ pub fn get_all_groups() -> Result<Vec<Group>, mysql::Error> {
             genetic_type,
             family,
             species,
+            mapping_method,
         )| {
             Group {
                 id,
@@ -218,11 +225,93 @@ pub fn get_all_groups() -> Result<Vec<Group>, mysql::Error> {
                 genetic_type,
                 family,
                 species,
+                mapping_method,
             }
         },
     )
 }
 
+/// One mapping tool GeneNetwork offers (a MappingMethod row), e.g.
+/// qtlreaper, Rqtl, HappyR, PLINK, FastMap. A group points at one of
+/// these through InbredSet.MappingMethodId (see `Group::mapping_method`);
+/// the table also lists tools no group uses.
+#[derive(Serialize, utoipa::ToSchema)]
+pub struct MappingMethod {
+    pub id: u16,
+    pub name: String,
+}
+
+pub fn get_mapping_methods() -> Result<Vec<MappingMethod>, mysql::Error> {
+    let pool = pool()?;
+    let mut conn = pool.get_conn()?;
+    conn.query_map(
+        "SELECT Id, Name FROM MappingMethod ORDER BY Id",
+        |(id, name)| MappingMethod { id, name },
+    )
+}
+
+/// A GeneNetwork accession number (the "GN602" of a dataset's page): an
+/// InfoFiles row, resolved to the dataset it describes.
+#[derive(Serialize, utoipa::ToSchema)]
+pub struct Accession {
+    /// The number, without the "GN" prefix.
+    pub accession: u32,
+    /// The dataset's name (InfoFiles.InfoPageName), e.g. "BXDPublish".
+    pub name: String,
+    /// The page title, e.g. "BXD Published Phenotypes".
+    pub title: Option<String>,
+    /// "publish" (a phenotype dataset) or "probeset" (an expression
+    /// dataset); None when the name matches neither.
+    pub category: Option<String>,
+    /// The short name of the group the dataset belongs to.
+    pub group: Option<String>,
+}
+
+/// Resolve an accession number: its InfoFiles row, then the dataset of
+/// that name (PublishFreeze, else ProbeSetFreeze) for its category and
+/// group. None when no InfoFiles row has the accession.
+pub fn get_accession(accession: u32) -> Result<Option<Accession>, mysql::Error> {
+    let pool = pool()?;
+    let mut conn = pool.get_conn()?;
+    let row: Option<(String, Option<String>)> = conn.exec_first(
+        "SELECT InfoPageName, InfoPageTitle FROM InfoFiles \
+         WHERE GN_AccesionId = :accession LIMIT 1",
+        params! { "accession" => accession },
+    )?;
+    let Some((name, title)) = row else {
+        return Ok(None);
+    };
+    let publish: Option<String> = conn.exec_first(
+        "SELECT InbredSet.Name FROM PublishFreeze \
+         JOIN InbredSet ON InbredSet.Id = PublishFreeze.InbredSetId \
+         WHERE PublishFreeze.Name = :name LIMIT 1",
+        params! { "name" => &name },
+    )?;
+    let (category, group) = match publish {
+        Some(group) => (Some("publish".to_string()), Some(group)),
+        None => {
+            let probeset: Option<String> = conn.exec_first(
+                "SELECT InbredSet.Name FROM ProbeSetFreeze \
+                 JOIN ProbeFreeze ON ProbeFreeze.ProbeFreezeId = ProbeSetFreeze.ProbeFreezeId \
+                 JOIN InbredSet ON InbredSet.Id = ProbeFreeze.InbredSetId \
+                 WHERE ProbeSetFreeze.Name = :name LIMIT 1",
+                params! { "name" => &name },
+            )?;
+            match probeset {
+                Some(group) => (Some("probeset".to_string()), Some(group)),
+                None => (None, None),
+            }
+        }
+    };
+    Ok(Some(Accession {
+        accession,
+        name,
+        title,
+        category,
+        group,
+    }))
+}
+
 /// One full row of the InbredSet table. InbredSet has 14 columns, more
 /// than mysql_common's FromRow is implemented for tuples (up to 12), so
 /// this derives FromRow instead of being built from a tuple like
@@ -252,6 +341,9 @@ pub struct GroupDetail {
     #[mysql(rename = "InbredSetCode")]
     pub group_code: Option<String>,
     pub description: Option<String>,
+    /// The mapping tool's name (the MappingMethod row `mapping_method_id`
+    /// points to), e.g. "qtlreaper".
+    pub mapping_method: Option<String>,
 }
 
 /// Fetch one group by InbredSetName, Name, FullName or numeric Id,
@@ -263,11 +355,15 @@ pub fn get_group_by_name(name: &str) -> Result<Option<GroupDetail>, mysql::Error
     let pool = pool()?;
     let mut conn = pool.get_conn()?;
     conn.exec_first(
-        "SELECT Id, InbredSetId, InbredSetName, Name, SpeciesId, FullName, \
-                public, MappingMethodId, GeneticType, Family, \
-                FamilyOrder, MenuOrderId, InbredSetCode, Description \
-         FROM InbredSet WHERE InbredSetName = :name OR Name = :name \
-                OR FullName = :name OR CAST(Id AS CHAR) = :name",
+        "SELECT InbredSet.Id, InbredSet.InbredSetId, InbredSet.InbredSetName, InbredSet.Name, \
+                InbredSet.SpeciesId, InbredSet.FullName, InbredSet.public, \
+                InbredSet.MappingMethodId, InbredSet.GeneticType, InbredSet.Family, \
+                InbredSet.FamilyOrder, InbredSet.MenuOrderId, InbredSet.InbredSetCode, \
+                InbredSet.Description, MappingMethod.Name AS MappingMethod \
+         FROM InbredSet \
+         LEFT JOIN MappingMethod ON MappingMethod.Id = InbredSet.MappingMethodId \
+         WHERE InbredSet.InbredSetName = :name OR InbredSet.Name = :name \
+                OR InbredSet.FullName = :name OR CAST(InbredSet.Id AS CHAR) = :name",
         mysql::params! { "name" => name },
     )
 }
@@ -564,6 +660,9 @@ pub struct Dataset {
     pub public: u8,
     pub confidentiality: u8,
     pub data_scale: String,
+    /// What the dataset was measured in, e.g. "Retina mRNA" (the Tissue
+    /// row its ProbeFreeze points to).
+    pub tissue: Option<String>,
 }
 
 /// Fetch the expression datasets belonging to a group. Mirrors
@@ -577,9 +676,10 @@ pub fn get_group_datasets(group_id: u16) -> Result<Vec<Dataset>, mysql::Error> {
         "SELECT ProbeSetFreeze.Id, ProbeSetFreeze.ProbeFreezeId, ProbeSetFreeze.Name, \
                 ProbeSetFreeze.Name2, ProbeSetFreeze.FullName, ProbeSetFreeze.ShortName, \
                 CAST(ProbeSetFreeze.CreateTime AS CHAR), ProbeSetFreeze.public, \
-                ProbeSetFreeze.confidentiality, ProbeSetFreeze.DataScale \
+                ProbeSetFreeze.confidentiality, ProbeSetFreeze.DataScale, Tissue.Name \
          FROM ProbeSetFreeze \
          JOIN ProbeFreeze ON ProbeFreeze.ProbeFreezeId = ProbeSetFreeze.ProbeFreezeId \
+         LEFT JOIN Tissue ON Tissue.Id = ProbeFreeze.TissueId \
          WHERE ProbeFreeze.InbredSetId = :group_id \
          ORDER BY ProbeSetFreeze.Name",
         mysql::params! { "group_id" => group_id },
@@ -594,6 +694,7 @@ pub fn get_group_datasets(group_id: u16) -> Result<Vec<Dataset>, mysql::Error> {
             public,
             confidentiality,
             data_scale,
+            tissue,
         )| {
             Dataset {
                 id,
@@ -606,6 +707,7 @@ pub fn get_group_datasets(group_id: u16) -> Result<Vec<Dataset>, mysql::Error> {
                 public,
                 confidentiality,
                 data_scale,
+                tissue,
             }
         },
     )
@@ -721,10 +823,11 @@ pub fn get_species_datasets(species_id: u16) -> Result<Vec<Dataset>, mysql::Erro
         "SELECT ProbeSetFreeze.Id, ProbeSetFreeze.ProbeFreezeId, ProbeSetFreeze.Name, \
                 ProbeSetFreeze.Name2, ProbeSetFreeze.FullName, ProbeSetFreeze.ShortName, \
                 CAST(ProbeSetFreeze.CreateTime AS CHAR), ProbeSetFreeze.public, \
-                ProbeSetFreeze.confidentiality, ProbeSetFreeze.DataScale \
+                ProbeSetFreeze.confidentiality, ProbeSetFreeze.DataScale, Tissue.Name \
          FROM ProbeSetFreeze \
          JOIN ProbeFreeze ON ProbeFreeze.ProbeFreezeId = ProbeSetFreeze.ProbeFreezeId \
          JOIN InbredSet ON InbredSet.Id = ProbeFreeze.InbredSetId \
+         LEFT JOIN Tissue ON Tissue.Id = ProbeFreeze.TissueId \
          WHERE InbredSet.SpeciesId = :species_id \
          ORDER BY ProbeSetFreeze.Name",
         mysql::params! { "species_id" => species_id },
@@ -739,6 +842,7 @@ pub fn get_species_datasets(species_id: u16) -> Result<Vec<Dataset>, mysql::Erro
             public,
             confidentiality,
             data_scale,
+            tissue,
         )| {
             Dataset {
                 id,
@@ -751,6 +855,7 @@ pub fn get_species_datasets(species_id: u16) -> Result<Vec<Dataset>, mysql::Erro
                 public,
                 confidentiality,
                 data_scale,
+                tissue,
             }
         },
     )
@@ -768,6 +873,7 @@ type DatasetRow = (
     u8,
     u8,
     String,
+    Option<String>,
 );
 
 /// Fetch one dataset by Name, Name2, FullName, ShortName or numeric
@@ -777,11 +883,16 @@ pub fn get_dataset_by_name(name: &str) -> Result<Option<Dataset>, mysql::Error>
     let pool = pool()?;
     let mut conn = pool.get_conn()?;
     conn.exec_first(
-        "SELECT Id, ProbeFreezeId, Name, Name2, FullName, ShortName, \
-                CAST(CreateTime AS CHAR), public, confidentiality, DataScale \
+        "SELECT ProbeSetFreeze.Id, ProbeSetFreeze.ProbeFreezeId, ProbeSetFreeze.Name, \
+                ProbeSetFreeze.Name2, ProbeSetFreeze.FullName, ProbeSetFreeze.ShortName, \
+                CAST(ProbeSetFreeze.CreateTime AS CHAR), ProbeSetFreeze.public, \
+                ProbeSetFreeze.confidentiality, ProbeSetFreeze.DataScale, Tissue.Name \
          FROM ProbeSetFreeze \
-         WHERE Name = :name OR Name2 = :name OR FullName = :name \
-                OR ShortName = :name OR CAST(Id AS CHAR) = :name",
+         LEFT JOIN ProbeFreeze ON ProbeFreeze.ProbeFreezeId = ProbeSetFreeze.ProbeFreezeId \
+         LEFT JOIN Tissue ON Tissue.Id = ProbeFreeze.TissueId \
+         WHERE ProbeSetFreeze.Name = :name OR ProbeSetFreeze.Name2 = :name \
+                OR ProbeSetFreeze.FullName = :name OR ProbeSetFreeze.ShortName = :name \
+                OR CAST(ProbeSetFreeze.Id AS CHAR) = :name",
         mysql::params! { "name" => name },
     )
     .map(|row: Option<DatasetRow>| {
@@ -797,6 +908,7 @@ pub fn get_dataset_by_name(name: &str) -> Result<Option<Dataset>, mysql::Error>
                 public,
                 confidentiality,
                 data_scale,
+                tissue,
             )| {
                 Dataset {
                     id,
@@ -809,6 +921,7 @@ pub fn get_dataset_by_name(name: &str) -> Result<Option<Dataset>, mysql::Error>
                     public,
                     confidentiality,
                     data_scale,
+                    tissue,
                 }
             },
         )
diff --git a/src/lib.rs b/src/lib.rs
index 21ad242..63c25a1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -53,6 +53,8 @@ pub fn app() -> Router {
     let mut api_router = OpenApiRouter::with_openapi(ApiDoc::openapi())
         .routes(routes!(hello_world))
         .routes(routes!(version))
+        .routes(routes!(routes::accessions::accession))
+        .routes(routes!(routes::mapping_methods::mapping_methods))
         .routes(routes!(routes::species::species))
         .routes(routes!(routes::species::species_by_name))
         .routes(routes!(routes::species::species_datasets))
diff --git a/src/routes/accessions.rs b/src/routes/accessions.rs
new file mode 100644
index 0000000..f4ce3b1
--- /dev/null
+++ b/src/routes/accessions.rs
@@ -0,0 +1,116 @@
+//! Accessions domain endpoint: GeneNetwork accession numbers ("GN602").
+
+use axum::Json;
+use axum::extract::Path;
+use axum::http::StatusCode;
+
+use crate::auth::AuthToken;
+use crate::db;
+use crate::error::{ApiError, Unauthorized};
+use crate::response::{Ctx, Envelope, path_segment};
+
+/// The number in "GN602" (the prefix is optional and case-insensitive).
+fn parse_accession(text: &str) -> Option<u32> {
+    let digits = match text.get(..2) {
+        Some(prefix) if prefix.eq_ignore_ascii_case("gn") => &text[2..],
+        _ => text,
+    };
+    digits.parse().ok()
+}
+
+#[utoipa::path(get, path = "/accessions/{accession}", summary = "Resolve a GeneNetwork accession number such as GN602 to its dataset", params(
+    ("accession" = String, Path, description = "The accession number, with or without the GN prefix, e.g. GN602 or 602")
+), responses(
+    (status = 200, description = "The dataset the accession names, with its category and group", body = Envelope<db::Accession>),
+    Unauthorized,
+    (status = 400, description = "Not an accession number", body = ApiError),
+    (status = 404, description = "No dataset has this accession", body = ApiError),
+    (status = 500, description = "Database error", body = ApiError)
+))]
+pub async fn accession(
+    ctx: Ctx,
+    Path(accession): Path<String>,
+    _token: AuthToken,
+) -> Result<Json<Envelope<db::Accession>>, ApiError> {
+    let rid = ctx.request_info();
+    let Some(number) = parse_accession(&accession) else {
+        return Err(ApiError::new(
+            StatusCode::BAD_REQUEST,
+            "invalid_parameter",
+            "Invalid parameter",
+            format!("'{accession}' is not an accession number; expected e.g. GN602 or 602."),
+            "accession",
+        )
+        .with_request_id(rid));
+    };
+    tokio::task::spawn_blocking(move || db::get_accession(number))
+        .await
+        .map_err(|e| {
+            ApiError::new(
+                StatusCode::INTERNAL_SERVER_ERROR,
+                "internal_error",
+                "Internal error",
+                e.to_string(),
+                "accession",
+            )
+            .with_request_id(rid.clone())
+        })?
+        .map_err(|e| {
+            ApiError::new(
+                StatusCode::INTERNAL_SERVER_ERROR,
+                "database_error",
+                "Database error",
+                e.to_string(),
+                "accession",
+            )
+            .with_request_id(rid.clone())
+        })?
+        .map(|found| {
+            let group = found.group.as_deref().map(path_segment);
+            let name = path_segment(&found.name);
+            let category = found.category.clone();
+            let mut envelope = ctx.envelope(found);
+            if let Some(group) = &group {
+                envelope = envelope.with_next(&format!("/groups/{group}"), "The group the dataset belongs to");
+            }
+            match (category.as_deref(), &group) {
+                (Some("probeset"), _) => {
+                    envelope = envelope.with_next(&format!("/datasets/{name}"), "The expression dataset");
+                }
+                (Some("publish"), Some(group)) => {
+                    envelope = envelope.with_next(
+                        &format!("/groups/{group}/traits"),
+                        "The dataset's published traits (can be very large)",
+                    );
+                }
+                _ => {}
+            }
+            Json(envelope)
+        })
+        .ok_or_else(|| {
+            ApiError::new(
+                StatusCode::NOT_FOUND,
+                "accession_not_found",
+                "Accession not found",
+                format!("No dataset has accession {accession}."),
+                "accession",
+            )
+            .with_request_id(rid)
+        })
+}
+
+#[cfg(test)]
+mod tests {
+    use super::parse_accession;
+
+    #[test]
+    fn accessions_parse_with_or_without_the_gn_prefix() {
+        assert_eq!(parse_accession("GN602"), Some(602));
+        assert_eq!(parse_accession("gn602"), Some(602));
+        assert_eq!(parse_accession("602"), Some(602));
+        assert_eq!(parse_accession("GN"), None);
+        assert_eq!(parse_accession("GNx"), None);
+        assert_eq!(parse_accession("BXDPublish"), None);
+        assert_eq!(parse_accession(""), None);
+    }
+}
diff --git a/src/routes/mapping_methods.rs b/src/routes/mapping_methods.rs
new file mode 100644
index 0000000..9805fe8
--- /dev/null
+++ b/src/routes/mapping_methods.rs
@@ -0,0 +1,49 @@
+//! Mapping methods domain endpoint: the mapping tools GeneNetwork offers.
+
+use axum::Json;
+use axum::http::StatusCode;
+
+use crate::auth::AuthToken;
+use crate::db;
+use crate::error::{ApiError, Unauthorized};
+use crate::response::{Ctx, Envelope};
+
+#[utoipa::path(get, path = "/mapping-methods", summary = "List the mapping tools (QTL mapping methods) GeneNetwork offers", responses(
+    (status = 200, description = "The MappingMethod rows, including tools no group currently uses", body = Envelope<Vec<db::MappingMethod>>),
+    Unauthorized,
+    (status = 500, description = "Database error", body = ApiError)
+))]
+pub async fn mapping_methods(
+    ctx: Ctx,
+    _token: AuthToken,
+) -> Result<Json<Envelope<Vec<db::MappingMethod>>>, ApiError> {
+    let rid = ctx.request_info();
+    tokio::task::spawn_blocking(db::get_mapping_methods)
+        .await
+        .map_err(|e| {
+            ApiError::new(
+                StatusCode::INTERNAL_SERVER_ERROR,
+                "internal_error",
+                "Internal error",
+                e.to_string(),
+                "mapping_methods",
+            )
+            .with_request_id(rid.clone())
+        })?
+        .map(|methods| {
+            Json(ctx.envelope(methods).with_next(
+                "/groups",
+                "Groups, each with the mapping tool offered for it (`mapping_method`)",
+            ))
+        })
+        .map_err(|e| {
+            ApiError::new(
+                StatusCode::INTERNAL_SERVER_ERROR,
+                "database_error",
+                "Database error",
+                e.to_string(),
+                "mapping_methods",
+            )
+            .with_request_id(rid)
+        })
+}
diff --git a/src/routes/mod.rs b/src/routes/mod.rs
index 0362206..55227e0 100644
--- a/src/routes/mod.rs
+++ b/src/routes/mod.rs
@@ -3,10 +3,12 @@
 //! and utoipa annotations for one domain; lib.rs just registers them
 //! on the router.
 
+pub mod accessions;
 pub mod correlation;
 pub mod datasets;
 pub mod dev;
 pub mod groups;
+pub mod mapping_methods;
 pub mod publications;
 pub mod search;
 pub mod species;
diff --git a/test/data/benchmark_search.json b/test/data/benchmark_search.json
index 898946d..4905a85 100644
--- a/test/data/benchmark_search.json
+++ b/test/data/benchmark_search.json
@@ -4992,6 +4992,27 @@
    "year": 2022
   },
   {
+   "additive": 0.005238800000000002,
+   "authors": [
+    "Sipe L",
+    "Williams RW",
+    "Ashbrook DG",
+    "Makowski L"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Cancer, immune system: Breast cancer tumor TIMER 2.0 cell estimates in female F1 (female BXD crossed to male C3 (1)-TAg (JAX Stock 013591: FVB-Tg(C3-1TAg)cJeg/JegJ, SV40 T/t-antigen) strain mean T.cell.CD4..naive_XCELL",
+   "geno_chr": "10",
+   "geno_mb": 120.592845,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 10.416415761563046,
+   "mean": 0.001806482833264203,
+   "name": "24538",
+   "species": "mouse",
+   "year": 2022
+  },
+  {
    "additive": -0.006075640449438182,
    "authors": [
     "Sipe L",
@@ -5032,6 +5053,279 @@
    "name": "24541",
    "species": "mouse",
    "year": 2022
+  },
+  {
+   "additive": 0.00019059602649006623,
+   "authors": [
+    "Sipe L",
+    "Williams RW",
+    "Ashbrook DG",
+    "Makowski L"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Cancer, immune system: Breast cancer tumor TIMER 2.0 cell estimates in female F1 (female BXD crossed to male C3 (1)-TAg (JAX Stock 013591: FVB-Tg(C3-1TAg)cJeg/JegJ, SV40 T/t-antigen) strain mean T.cell.gamma.delta_CIBERSORT",
+   "geno_chr": "5",
+   "geno_mb": 135.879195,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 5.496456283931028,
+   "mean": 9.924137828357774e-05,
+   "name": "24489",
+   "species": "mouse",
+   "year": 2022
+  }
+ ],
+ "TSH AND binding AND group:BXD": [
+  {
+   "additive": 2.277507551165147,
+   "authors": [
+    "S.M. McLachlan",
+    "H. Aliesky",
+    "R.W. Williams",
+    "B. Rapoport"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Immune system, endocrinology: serum inhibition of TSH binding to the TSHR before immunization [% inhibition] ",
+   "geno_chr": "7",
+   "geno_mb": 70.821579,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 12.541263456691917,
+   "mean": 5.80882352919263,
+   "name": "16314",
+   "species": "mouse",
+   "year": 2013
+  },
+  {
+   "additive": -11.617380861904756,
+   "authors": [
+    "McLachlan",
+    "H. Aliesky",
+    "R.W. Williams",
+    "B. Rapoport"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Immune system, endocrine system: TBI-2x, serum inhibition of TSH binding to the TSHR 1 week after 2 immunizations with TSHR A-subunit adenovirus [% inhibition]",
+   "geno_chr": "17",
+   "geno_mb": 33.11022,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 35.95135131756367,
+   "mean": 51.687692099351146,
+   "name": "16315",
+   "species": "mouse",
+   "year": 2013
+  },
+  {
+   "additive": -13.989583204861109,
+   "authors": [
+    "McLachlan SM",
+    "Aliesky H",
+    "Banuelos B",
+    "Magana J",
+    "Williams RW",
+    "Rapoport B"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Immune system, endocrinology: Serum inhibition of TSH binding to the TSHR 4 weeks after 3 immunizations with TSHR A-subunit adenovirus in young adult females (controlled by MHC region of Chr 17) [% inhibition]",
+   "geno_chr": "17",
+   "geno_mb": 33.11022,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 51.98887836016423,
+   "mean": 53.02499971670263,
+   "name": "16316",
+   "pubmed_id": 25051451,
+   "pubmed_link": "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids=25051451&dopt=Abstract",
+   "species": "mouse",
+   "year": 2014
+  }
+ ],
+ "alanine AND transaminase AND group:BXD": [
+  {
+   "additive": -6.706562791666664,
+   "authors": [
+    "Rooney RJ",
+    "Hamre K",
+    "Williams RW",
+    "Patel DH"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Blood chemistry, pharmacology, toxicology: Alanine transaminase (ALT, ALAT, SGPT) level in serum following alcohol (6 gm ethanol/kg via gastric gavage) at 24 hours after gavage in young adult females (associated with GenEx EtOH liver gene expression) [U/L]",
+   "geno_chr": "2",
+   "geno_mb": 178.71732,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 14.585415590500999,
+   "mean": 57.50928569975353,
+   "name": "12984",
+   "species": "mouse",
+   "year": 2011
+  },
+  {
+   "additive": -7.376162118686868,
+   "authors": [
+    "Rooney RJ",
+    "Hamre K",
+    "Williams RW",
+    "Patel DH"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Blood chemistry, pharmacology, toxicology: Alanine transaminase (ALT, ALAT, SGPT) level in serum following alcohol (6 gm ethanol/kg via gastric gavage) at 24 hours after gavage in young adult males (BXD16 winsorized from 158 +/- 32 to 92 and DBA/2J from 107 +/- 26 to 91) (associated with GenEx EtOH liver gene expression) [U/L]",
+   "geno_chr": "13",
+   "geno_mb": 39.299448,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 13.556236292637905,
+   "mean": 61.29880968729655,
+   "name": "12985",
+   "species": "mouse",
+   "year": 2011
+  },
+  {
+   "additive": 5.17381766951567,
+   "authors": [
+    "Rooney RJ",
+    "Hamre K",
+    "Williams RW",
+    "Patel DH"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Blood chemistry, pharmacology, toxicology: Alanine transaminase (ALT, ALAT, SGPT) level in serum following alcohol (6 gm ethanol/kg via gastric gavage) at 24 hours after gavage in young adult males and females ( DBA/2J winsorized from 89.37 +/- 10.96 to 84, BXD69 from 91.05 +/- 5.12 to 85, and BXD16 from 107.49 +/- 24.41 to 86) (strain average associated with GenEx EtOH liver gene expression) [U/L]",
+   "geno_chr": "8",
+   "geno_mb": 95.712996,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 9.6369704031752,
+   "mean": 59.81238065447126,
+   "name": "12979",
+   "species": "mouse",
+   "year": 2011
+  },
+  {
+   "additive": -20.608808973684212,
+   "authors": [
+    "Williams EG",
+    "Wu Y",
+    "Jha P",
+    "Dubuis S",
+    "Blattmann P",
+    "Argmann CA",
+    "Houten SM",
+    "Amariuta T",
+    "Wolski W",
+    "Zamboni N",
+    "Aebersold R",
+    "Auwerx J"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Blood chemistry, metabolism: Alanine transaminase (ALAT) in plasma, fasted state at 29 weeks of age, chow diet (6% kCal/fat Harlan.2918), males [U/L] (EPFL LISP3 Cohort)",
+   "geno_chr": "9",
+   "geno_mb": 107.63925,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 19.59468537016906,
+   "mean": 59.45466694302029,
+   "name": "17819",
+   "pubmed_id": 27284200,
+   "pubmed_link": "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids=27284200&dopt=Abstract",
+   "species": "mouse",
+   "year": 2016
+  },
+  {
+   "additive": 48.31680161764705,
+   "authors": [
+    "Williams EG",
+    "Wu Y",
+    "Jha P",
+    "Dubuis S",
+    "Blattmann P",
+    "Argmann CA",
+    "Houten SM",
+    "Amariuta T",
+    "Wolski W",
+    "Zamboni N",
+    "Aebersold R",
+    "Auwerx J"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Blood chemistry, metabolism: Alanine transaminase (ALAT) in plasma, fasted state at 29 weeks of age, high fat diet (60% kCal/fat HarlanTD.06414), males [U/L] (EPFL LISP3 Cohort)",
+   "geno_chr": "11",
+   "geno_mb": 87.563853,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 11.437264237101848,
+   "mean": 105.45790712223497,
+   "name": "17820",
+   "pubmed_id": 27284200,
+   "pubmed_link": "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids=27284200&dopt=Abstract",
+   "species": "mouse",
+   "year": 2016
+  },
+  {
+   "additive": -9.382936507936508,
+   "authors": [
+    "Andreux P",
+    "Williams EG",
+    "Koutnikova H",
+    "Houtkooper RH",
+    "Champy MF",
+    "Henry H",
+    "Schoonjans K",
+    "Williams RW",
+    "Auwerx J"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Blood chemistry: Alanine transaminase (ALT, ALAT, SGPT) level in serum of 14-week old females [U/L]",
+   "geno_chr": "15",
+   "geno_mb": 76.714659,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 9.977701467022671,
+   "mean": 34.520833333333336,
+   "name": "12822",
+   "pubmed_id": 22939713,
+   "pubmed_link": "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids=22939713&dopt=Abstract",
+   "species": "mouse",
+   "year": 2012
+  },
+  {
+   "additive": 13.30519941348974,
+   "authors": [
+    "Andreux P",
+    "Williams EG",
+    "Koutnikova H",
+    "Houtkooper RH",
+    "Champy MF",
+    "Henry H",
+    "Schoonjans K",
+    "Williams RW",
+    "Auwerx J"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Blood chemistry: Alanine transaminase (ALT, ALAT, SGPT) level in serum of 14-week old males [U/L]",
+   "geno_chr": "1",
+   "geno_mb": 152.432937,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 16.143748213176437,
+   "mean": 43.953627919041836,
+   "name": "12892",
+   "pubmed_id": 22939713,
+   "pubmed_link": "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids=22939713&dopt=Abstract",
+   "species": "mouse",
+   "year": 2012
   }
  ],
  "diencephalon AND serotonin AND group:BXD": [
@@ -5876,6 +6170,29 @@
    "year": 2014
   }
  ],
+ "nitropropionic": [
+  {
+   "additive": 0.8333333333333333,
+   "authors": [
+    "Dietrich P",
+    "Mulligan MK",
+    "Williams RW",
+    "Dragatsis I"
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, toxicology: 3-nitropropionic acid neurodegeneration in striatum (caudate putamen) (50 mg/kg ip) in young adults, presence or absence of lesions [-1 = lesions, +1 = no lesions]",
+   "geno_chr": "7",
+   "geno_mb": 144.424663,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 28.241178573860587,
+   "mean": 0.42857142857142855,
+   "name": "15959",
+   "species": "mouse",
+   "year": 2019
+  }
+ ],
  "olfactory AND group:BXD": [
   {
    "additive": 0.779166808333334,
@@ -8132,5 +8449,405 @@
    "species": "mouse",
    "year": 2009
   }
+ ],
+ "working AND memory AND onset AND group:BXD": [
+  {
+   "additive": 1.4938374999999997,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Age at onset of working memory deficit defined as first age at which performance dropped to chance (50%), male and females average of AD-BXD cases positive for 5XFAD transgene [months]",
+   "geno_chr": "7",
+   "geno_mb": 136.390392,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 11.061930860919492,
+   "mean": 9.3656666720355,
+   "name": "20473",
+   "pubmed_id": 30595332,
+   "pubmed_link": "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=PubMed&list_uids=30595332&dopt=Abstract",
+   "species": "mouse",
+   "year": 2019
+  },
+  {
+   "additive": -1.7211276785714285,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Age at onset of working memory deficits; individual mice defined as \"impaired\" when chance performance dropped below chance (50%). This data is strain averaged across females from the AD-BXD population positive for 5XFAD transgene [months]",
+   "geno_chr": "4",
+   "geno_mb": 144.912885,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 18.471707845552164,
+   "mean": 8.949675963475155,
+   "name": "20637",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": 1.9443938727272718,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Age at onset of working memory deficits; individual mice defined as \"impaired\" when chance performance dropped below chance (50%). This data is strain averaged across males from the AD-BXD population positive for 5XFAD transgene [months]",
+   "geno_chr": "16",
+   "geno_mb": 76.544402,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 9.286993558399356,
+   "mean": 11.36570429801941,
+   "name": "20720",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -2.2181372843137255,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Age at onset of working memory deficits; individual mice defined as \"impaired\" when chance performance dropped below chance (50%). This data is strain averaged across female non-transgenic littermates from the AD-BXD population (Ntg-BXDs) [months]",
+   "geno_chr": "11",
+   "geno_mb": 92.750309,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 9.480158264008573,
+   "mean": 11.697012958526612,
+   "name": "20803",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": 3.3035713571428564,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Age at onset of working memory deficits; individual mice defined as \"impaired\" when chance performance dropped below chance (50%). This data is strain averaged across male non-transgenic littermates from the AD-BXD population (Ntg-BXDs) [months]",
+   "geno_chr": "16",
+   "geno_mb": 10.816368,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 21.020750738100254,
+   "mean": 10.558823473313275,
+   "name": "20884",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -1.6614027301587306,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Age at onset of working memory deficits; individual mice defined as \"impaired\" when chance performance dropped below chance (50%). This data is strain averaged across male and female non-transgenic littermates from the AD-BXD population (Ntg-BXDs) [months]",
+   "geno_chr": "7",
+   "geno_mb": 95.826468,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 8.702394499553801,
+   "mean": 11.124354991912842,
+   "name": "20556",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -1.9583326888888892,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 6-month-old females from the AD-BXD population positive for 5XFAD transgene [%]",
+   "geno_chr": "2",
+   "geno_mb": 27.248388,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 11.10896233455853,
+   "mean": 3.498813068637481,
+   "name": "20698",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": 3.6843638941176473,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 14-month-old females from the AD-BXD population positive for 5XFAD transgene [%]",
+   "geno_chr": "X",
+   "geno_mb": 9.308621,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 10.566366697533864,
+   "mean": 2.969233455217403,
+   "name": "20709",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -5.492166833333334,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 6-month-old males from the AD-BXD population positive for 5XFAD transgene [%]",
+   "geno_chr": "10",
+   "geno_mb": 3.103479,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 15.544668107764183,
+   "mean": 3.520512894789378,
+   "name": "20781",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -1.4906068333333333,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 14-month-old males from the AD-BXD population positive for 5XFAD transgene [%]",
+   "geno_chr": "1",
+   "geno_mb": 167.196977,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 9.931855969637269,
+   "mean": 3.0650667779975467,
+   "name": "20792",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -1.846291675,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 6-month-old female non-transgenic littermates from the AD-BXD population (Ntg-BXDs) [%]",
+   "geno_chr": "5",
+   "geno_mb": 26.913694,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 13.86828071528427,
+   "mean": 2.785391011585792,
+   "name": "20862",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -3.01951575,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 14-month-old female non-transgenic littermates from the AD-BXD population (Ntg-BXDs) [%]",
+   "geno_chr": "10",
+   "geno_mb": 13.681079,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 10.874703079302044,
+   "mean": 3.316319992542267,
+   "name": "20873",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -4.077824055555556,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 6-month-old male non-transgenic littermates from the AD-BXD population (Ntg-BXDs) [%]",
+   "geno_chr": "2",
+   "geno_mb": 44.471475,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 16.179870864565487,
+   "mean": 1.7875347783168156,
+   "name": "20943",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": 3.3486110416666666,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 14-month-old male non-transgenic littermates from the AD-BXD population (Ntg-BXDs) [%]",
+   "geno_chr": "10",
+   "geno_mb": 111.138345,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 19.614669577898145,
+   "mean": 2.8552272845717037,
+   "name": "20954",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -2.722909188888888,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 6-month-old males and females from the AD-BXD population positive for 5XFAD transgene [%]",
+   "geno_chr": "2",
+   "geno_mb": 27.248388,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 19.72313133126548,
+   "mean": 3.615060295623082,
+   "name": "20534",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -2.3145282500000004,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 14-month-old males and females from the AD-BXD population positive for 5XFAD transgene [%]",
+   "geno_chr": "9",
+   "geno_mb": 43.263686,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 8.036472284000993,
+   "mean": 3.0787386091855855,
+   "name": "20545",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -2.0655947857142856,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 6-month-old male and female non-transgenic littermates from the AD-BXD population (Ntg-BXDs) [%]",
+   "geno_chr": "2",
+   "geno_mb": 25.649463,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 17.226571037618555,
+   "mean": 2.5323921221618853,
+   "name": "20615",
+   "species": "mouse",
+   "year": 2017
+  },
+  {
+   "additive": -2.6322253666666664,
+   "authors": [
+    "Neuner SM",
+    "Heuer SE",
+    "Huentelman MJ",
+    "O'Connell KMS",
+    "Kaczorowski CC."
+   ],
+   "dataset": "BXDPublish",
+   "dataset_fullname": "BXD Published Phenotypes",
+   "description": "Central nervous system, behavior, learning and memory: Contextual fear conditioning, baseline freezing - the percentage of the 180s baseline period (prior to any shock onset) spent freezing. Can be used as estimate of baseline anxiety. This data is strain averaged across 14-month-old male and female non-transgenic littermates from the AD-BXD population (Ntg-BXDs) [%]",
+   "geno_chr": "10",
+   "geno_mb": 13.681079,
+   "group": "BXD",
+   "inbredsetcode": "BXD",
+   "lrs": 9.892644837501436,
+   "mean": 3.198044198155403,
+   "name": "20626",
+   "species": "mouse",
+   "year": 2017
+  }
  ]
 }
\ No newline at end of file
diff --git a/test/python/test_accessions.py b/test/python/test_accessions.py
new file mode 100644
index 0000000..5877dcb
--- /dev/null
+++ b/test/python/test_accessions.py
@@ -0,0 +1,68 @@
+"""Mirrors tests/accessions.rs. Needs a live MariaDB (SQL_URI) and a
+valid token (every endpoint needs one now -- see docs/gn-auth.md);
+skips with a message rather than failing when either is missing, same
+as test_groups.py. GN602 is the BXD published phenotypes dataset; GN1 is
+Br_U_0803_M.
+"""
+
+import http.client
+import json
+import unittest
+
+from auth_helpers import TOKEN_ENV, auth_token
+from server_test_case import HOST, PORT, ServerTestCase, database_reachable, envelope_data
+
+
+class AccessionsTest(ServerTestCase):
+    EXTRA_ENV = TOKEN_ENV
+
+    def get(self, path):
+        token = auth_token()
+        if not token:
+            self.skipTest("no token (see docs/gn-auth.md)")
+        conn = http.client.HTTPConnection(HOST, int(PORT), timeout=30)
+        try:
+            conn.request("GET", path, headers={"Authorization": f"Bearer {token}"})
+            response = conn.getresponse()
+            return response, response.read()
+        finally:
+            conn.close()
+
+    def test_accession_resolves_to_its_dataset(self):
+        if not database_reachable():
+            self.skipTest("no database on 127.0.0.1:3306")
+
+        for path in ("/accessions/GN602", "/accessions/gn602", "/accessions/602"):
+            response, body = self.get(path)
+            self.assertEqual(response.status, 200, path)
+            found = envelope_data(body)
+            self.assertEqual(found["accession"], 602, path)
+            self.assertEqual(found["name"], "BXDPublish")
+            self.assertEqual(found["title"], "BXD Published Phenotypes")
+            self.assertEqual(found["category"], "publish")
+            self.assertEqual(found["group"], "BXD")
+
+        response, body = self.get("/accessions/GN1")
+        self.assertEqual(response.status, 200)
+        found = envelope_data(body)
+        self.assertEqual(found["name"], "Br_U_0803_M")
+        self.assertEqual(found["category"], "probeset")
+        self.assertEqual(found["group"], "BXD")
+
+    def test_accession_rejects_text_and_unknown_numbers(self):
+        if not database_reachable():
+            self.skipTest("no database on 127.0.0.1:3306")
+
+        response, body = self.get("/accessions/BXDPublish")
+        self.assertEqual(response.status, 400)
+        error = json.loads(body)
+        self.assertEqual(error["code"], "invalid_parameter")
+        self.assertEqual(error["operation_id"], "accession")
+
+        response, body = self.get("/accessions/GN99999999")
+        self.assertEqual(response.status, 404)
+        self.assertEqual(json.loads(body)["code"], "accession_not_found")
+
+
+if __name__ == "__main__":
+    unittest.main()
diff --git a/test/python/test_dataset_by_name.py b/test/python/test_dataset_by_name.py
index 58414a8..88aae8e 100644
--- a/test/python/test_dataset_by_name.py
+++ b/test/python/test_dataset_by_name.py
@@ -60,6 +60,19 @@ class DatasetByNameTest(ServerTestCase):
         self.assertEqual(error["code"], "dataset_not_found")
         self.assertEqual(error["operation_id"], "dataset_by_name")
 
+    def test_datasets_report_their_tissue(self):
+        if not database_reachable():
+            self.skipTest("no database on 127.0.0.1:3306")
+
+        response, body = self.get("/datasets/Br_U_0803_M")
+        self.assertEqual(response.status, 200)
+        self.assertEqual(envelope_data(body)["tissue"], "Brain mRNA")
+
+        response, body = self.get("/groups/BXD/datasets")
+        self.assertEqual(response.status, 200)
+        gut = next(d for d in envelope_data(body) if d["name"] == "UTHSC_GutGL_0414")
+        self.assertEqual(gut["tissue"], "Gastrointestinal mRNA")
+
 
 if __name__ == "__main__":
     unittest.main()
diff --git a/test/python/test_envelope.py b/test/python/test_envelope.py
index 160a50c..aa9ced3 100644
--- a/test/python/test_envelope.py
+++ b/test/python/test_envelope.py
@@ -26,6 +26,9 @@ SEEDS = [
     "/groups/BXD/strains",
     "/groups/BXD/case-attributes",
     "/groups/BXD/datasets",
+    "/mapping-methods",
+    "/accessions/GN602",
+    "/accessions/GN1",
     "/groups/BXD/traits?abbreviation=5HT_MB_M",
     "/groups/BXD/traits/17985",
     "/groups/BXD/traits/17985/values",
diff --git a/test/python/test_group_by_name.py b/test/python/test_group_by_name.py
index f562cbe..6256a1f 100644
--- a/test/python/test_group_by_name.py
+++ b/test/python/test_group_by_name.py
@@ -70,6 +70,16 @@ class GroupByNameTest(ServerTestCase):
         self.assertEqual(error["next"], "/groups")
         self.assertEqual(error["request_id"], request_id)
 
+    def test_group_by_name_names_the_mapping_tool(self):
+        if not database_reachable():
+            self.skipTest("no database on 127.0.0.1:3306")
+
+        response, body = self.get("/groups/HSNIH-Palmer")
+        self.assertEqual(response.status, 200)
+        group = envelope_data(body)
+        self.assertEqual(group["mapping_method_id"], "2")
+        self.assertEqual(group["mapping_method"], "Rqtl")
+
 
 if __name__ == "__main__":
     unittest.main()
diff --git a/test/python/test_groups.py b/test/python/test_groups.py
index a3dcb55..2cd09de 100644
--- a/test/python/test_groups.py
+++ b/test/python/test_groups.py
@@ -76,6 +76,28 @@ class GroupsTest(ServerTestCase):
         self.assertIn("HXBBXH", rat_reference)
         self.assertNotIn("BXD", rat_reference)
 
+    def test_groups_report_the_mapping_tool_offered_for_them(self):
+        if not database_reachable():
+            self.skipTest("no database on 127.0.0.1:3306")
+        token = auth_token()
+        if not token:
+            self.skipTest("no token (see docs/gn-auth.md)")
+
+        conn = http.client.HTTPConnection(HOST, int(PORT), timeout=10)
+        try:
+            conn.request("GET", "/groups", headers={"Authorization": f"Bearer {token}"})
+            response = conn.getresponse()
+            body = response.read()
+        finally:
+            conn.close()
+        self.assertEqual(response.status, 200)
+        tool = {g["name"]: g["mapping_method"] for g in envelope_data(body)}
+
+        self.assertEqual(tool["BXD"], "qtlreaper")
+        self.assertEqual(tool["HSNIH-Palmer"], "Rqtl")
+        self.assertEqual(tool["HSNIH-RGSMC"], "qtlreaper")  # not every outbred set uses Rqtl
+        self.assertIsNone(tool["Oregon-R_x_2b3"])
+
 
 if __name__ == "__main__":
     unittest.main()
diff --git a/test/python/test_mapping_methods.py b/test/python/test_mapping_methods.py
new file mode 100644
index 0000000..b5f7cdb
--- /dev/null
+++ b/test/python/test_mapping_methods.py
@@ -0,0 +1,46 @@
+"""Mirrors tests/mapping_methods.rs. Needs a live MariaDB (SQL_URI) and a
+valid token (every endpoint needs one now -- see docs/gn-auth.md);
+skips with a message rather than failing when either is missing, same
+as test_groups.py.
+"""
+
+import http.client
+import json
+import unittest
+
+from auth_helpers import TOKEN_ENV, auth_token
+from server_test_case import HOST, PORT, ServerTestCase, database_reachable, envelope_data
+
+
+class MappingMethodsTest(ServerTestCase):
+    EXTRA_ENV = TOKEN_ENV
+
+    def get(self, path):
+        token = auth_token()
+        if not token:
+            self.skipTest("no token (see docs/gn-auth.md)")
+        conn = http.client.HTTPConnection(HOST, int(PORT), timeout=30)
+        try:
+            conn.request("GET", path, headers={"Authorization": f"Bearer {token}"})
+            response = conn.getresponse()
+            return response, response.read()
+        finally:
+            conn.close()
+
+    def test_mapping_methods_lists_the_tools(self):
+        if not database_reachable():
+            self.skipTest("no database on 127.0.0.1:3306")
+
+        response, body = self.get("/mapping-methods")
+        self.assertEqual(response.status, 200)
+        methods = envelope_data(body)
+        # The MappingMethod table lists tools no group uses (PLINK, FastMap).
+        self.assertEqual(
+            [m["name"] for m in methods],
+            ["qtlreaper", "Rqtl", "HappyR", "PLINK", "FastMap"],
+        )
+        self.assertEqual(methods[0]["id"], 1)
+
+
+if __name__ == "__main__":
+    unittest.main()
diff --git a/tests/accessions.rs b/tests/accessions.rs
new file mode 100644
index 0000000..a090e64
--- /dev/null
+++ b/tests/accessions.rs
@@ -0,0 +1,80 @@
+use axum::http::StatusCode;
+use http_body_util::BodyExt;
+use serde_json::Value;
+
+mod common;
+
+/// Needs a live MariaDB connection (SQL_URI) and a valid token; skips
+/// rather than fails when either is missing, same as groups.rs. GN602 is
+/// the BXD published phenotypes dataset; GN1 is Br_U_0803_M.
+#[tokio::test]
+async fn accession_resolves_to_its_dataset() {
+    if !common::db_available() {
+        eprintln!(
+            "skipping accession_resolves_to_its_dataset: no usable database (check SQL_URI credentials)"
+        );
+        return;
+    }
+    let Some(token) = common::auth_token().await else {
+        eprintln!("skipping accession_resolves_to_its_dataset: no token (see docs/gn-auth.md)");
+        return;
+    };
+
+    for uri in ["/accessions/GN602", "/accessions/gn602", "/accessions/602"] {
+        let response = common::get_with_token(&format!("GET {uri}"), uri, &token).await;
+        assert_eq!(response.status(), StatusCode::OK, "{uri}");
+        let body = response.into_body().collect().await.unwrap().to_bytes();
+        let found: Value = common::data(&body);
+        assert_eq!(found["accession"], 602, "{uri}");
+        assert_eq!(found["name"], "BXDPublish");
+        assert_eq!(found["title"], "BXD Published Phenotypes");
+        assert_eq!(found["category"], "publish");
+        assert_eq!(found["group"], "BXD");
+    }
+
+    // An expression dataset.
+    let response = common::get_with_token("GET /accessions/GN1", "/accessions/GN1", &token).await;
+    assert_eq!(response.status(), StatusCode::OK);
+    let body = response.into_body().collect().await.unwrap().to_bytes();
+    let found: Value = common::data(&body);
+    assert_eq!(found["name"], "Br_U_0803_M");
+    assert_eq!(found["category"], "probeset");
+    assert_eq!(found["group"], "BXD");
+}
+
+#[tokio::test]
+async fn accession_rejects_text_and_unknown_numbers() {
+    if !common::db_available() {
+        eprintln!(
+            "skipping accession_rejects_text_and_unknown_numbers: no usable database (check SQL_URI credentials)"
+        );
+        return;
+    }
+    let Some(token) = common::auth_token().await else {
+        eprintln!("skipping accession_rejects_text_and_unknown_numbers: no token (see docs/gn-auth.md)");
+        return;
+    };
+
+    let response = common::get_with_token(
+        "GET /accessions/BXDPublish",
+        "/accessions/BXDPublish",
+        &token,
+    )
+    .await;
+    assert_eq!(response.status(), StatusCode::BAD_REQUEST);
+    let body = response.into_body().collect().await.unwrap().to_bytes();
+    let error: Value = serde_json::from_slice(&body).unwrap();
+    assert_eq!(error["code"], "invalid_parameter");
+    assert_eq!(error["operation_id"], "accession");
+
+    let response = common::get_with_token(
+        "GET /accessions/GN99999999",
+        "/accessions/GN99999999",
+        &token,
+    )
+    .await;
+    assert_eq!(response.status(), StatusCode::NOT_FOUND);
+    let body = response.into_body().collect().await.unwrap().to_bytes();
+    let error: Value = serde_json::from_slice(&body).unwrap();
+    assert_eq!(error["code"], "accession_not_found");
+}
diff --git a/tests/benchmark.rs b/tests/benchmark.rs
index 9bdeb9a..31c68ea 100644
--- a/tests/benchmark.rs
+++ b/tests/benchmark.rs
@@ -1,12 +1,22 @@
-//! The questions of aisearch/data/small_benchmark.csv that this API can
-//! answer today, each checked against the benchmark's own answer. Row
-//! numbers below are 0-based data rows of that file.
+//! The questions of aisearch/data/small_benchmark.csv and
+//! full_benchmark.csv that this API can answer today, each checked
+//! against the benchmark's own answer. "Row N" is a 0-based data row of
+//! the small file, "Full row N" of the full file (whose 115 rows include
+//! 37 of the small file's, which are tested once, as small rows).
 //!
-//! Not covered: rows 18 (the benchmark lists datasets our database does
-//! not link to the group), 19 (no mammal/taxonomy class) and 38 (the
-//! benchmark's answer is an arbitrary sample of many matching traits).
-//! Rows 11, 16, 25, 30, 34 and 37 need trait short names (abbreviations),
-//! the GeneNetwork trait URL and /search pagination.
+//! Not covered, small file: rows 18 (the benchmark lists datasets our
+//! database does not link to the group), 19 (no mammal/taxonomy class)
+//! and 38 (an arbitrary sample of many matching traits).
+//! Not covered, full file (the 14 new rows the API cannot answer, or
+//! answers only in part): 1, 4, 5, 8, 32, 42, 43, 52, 55 (the tissue
+//! reaches every benchmark dataset, but with 36 more), 61, 62, 63, 87
+//! (the benchmark's LOD belongs to the males' trait, though the
+//! question says female) and 112 (several traits match).
+//! Full rows 71, 78, 79, 80, 83, 84, 88, 101, 103 and 104 name traits by the
+//! benchmark's sanitised short names (every non-alphanumeric character
+//! turned into `_`), which the database stores unsanitised
+//! (`AAP/Lys_CD`, `TAG(56:7)_2_CD`), so they are matched against the
+//! group's full trait listing here.
 //!
 //! Search-based questions run against recorded production gn3 responses
 //! (test/data/benchmark_search.json, test/data/search_serotonin_midbrain_bxd.json;
@@ -176,6 +186,376 @@ fn set_of(items: &[&str]) -> BTreeSet<String> {
     items.iter().map(|s| s.to_string()).collect()
 }
 
+/// `text` lowercased with everything but letters and digits removed, to
+/// compare descriptions and names across the benchmark's punctuation.
+fn norm(text: &str) -> String {
+    text.chars()
+        .filter(|c| c.is_ascii_alphanumeric())
+        .collect::<String>()
+        .to_lowercase()
+}
+
+/// A set of names compared by `norm`.
+fn nset<'a>(items: impl IntoIterator<Item = &'a str>) -> BTreeSet<String> {
+    items.into_iter().map(norm).collect()
+}
+
+fn assert_close(actual: f64, expected: f64, what: &str) {
+    assert!(
+        (actual - expected).abs() <= 1e-9 * expected.abs().max(1.0),
+        "{what}: {actual} vs benchmark {expected}"
+    );
+}
+
+/// The trait of `listing` (`/groups/{g}/traits`) whose short name is the
+/// benchmark's `sanitised` name, i.e. equal once every non-alphanumeric
+/// character is `_`.
+fn find_sanitised<'a>(listing: &'a [Value], sanitised: &str) -> &'a Value {
+    let sanitise = |s: &str| {
+        s.chars()
+            .map(|c| if c.is_ascii_alphanumeric() { c } else { '_' })
+            .collect::<String>()
+            .trim_matches('_')
+            .to_string()
+    };
+    let wanted = sanitise(sanitised);
+    let found: Vec<&Value> = listing
+        .iter()
+        .filter(|t| t["abbreviation"].as_str().is_some_and(|a| sanitise(a) == wanted))
+        .collect();
+    assert_eq!(found.len(), 1, "short name {sanitised}: {} matches", found.len());
+    found[0]
+}
+
+fn description(trait_info: &Value) -> &str {
+    trait_info["post_publication_description"]
+        .as_str()
+        .or_else(|| trait_info["description"].as_str())
+        .unwrap()
+}
+
+
+/// Full-benchmark rows answered from `/search` (recorded gn3 responses).
+async fn full_benchmark_search_rows(token: &str, db: bool) {
+    // Full rows 66-68: the trait for age at onset of working memory deficit
+    // in Alzheimer's BXD mice, its description and its PubMed id.
+    let hits = search("working AND memory AND onset AND group:BXD", token).await;
+    let aao = best(
+        &hits,
+        &["Age at onset of working memory deficit", "male and females average of AD-BXD cases positive for 5XFAD"],
+        &[],
+    );
+    assert_lod(aao, 2.4026782929885950324);
+    assert!(norm(aao["description"].as_str().unwrap()).ends_with(&norm(
+        "Central nervous system, behavior, learning and memory: Age at onset of working memory deficit defined as first age at which performance dropped to chance 50%, male and females average of AD-BXD cases positive for 5XFAD transgene [months]"
+    )));
+    assert_eq!(aao["pubmed_id"], 30595332);
+    if db {
+        assert_eq!(aao["locus"], "rsm10000005323");
+    }
+
+    // Full row 74: highest mapping score for 3NP neurodegeneration.
+    let nitro = search("nitropropionic", token).await;
+    let hit = best(&nitro, &["3-nitropropionic acid neurodegeneration"], &[]);
+    assert_lod(hit, 6.1340526876326206818);
+    if db {
+        assert_eq!(hit["locus"], "rsm10000005366");
+    }
+
+    // Full row 77: the PubMed study on THDOC in the olfactory bulb.
+    let olfactory = search("olfactory AND group:BXD", token).await;
+    let thdoc = best(&olfactory, &["THDOC", "olfactory bulb", "1 hour after saline"], &[]);
+    assert_eq!(thdoc["pubmed_id"], 21494628);
+
+    // Full rows 85-86: the liver enzyme measured in 14-week old females.
+    let alt = search("alanine AND transaminase AND group:BXD", token).await;
+    let hit = best(&alt, &["Alanine transaminase", "14-week old females"], &[]);
+    assert_lod(hit, 2.1671810310648718101);
+    assert_eq!(hit["pubmed_id"], 22939713);
+    if db {
+        assert_eq!(hit["locus"], "rsm10000012410");
+    }
+
+    // Full row 91: additive effect of the acoustic startle response to
+    // 110 dB at 10 kHz (the trait without prepulse, not a PPI trait).
+    let startle = search("startle AND group:BXD", token).await;
+    let asr = best(
+        &startle,
+        &["Acoustic startle response to a 110 dB SPL, 10 kHz tone without prepul"],
+        &[],
+    );
+    assert_close(asr["additive"].as_f64().unwrap(), -5.7583334166666668708, "ASR additive");
+
+    // Full row 94: the PubMed article on striatum volume.
+    let volume = search("striatum AND volume AND group:BXD", token).await;
+    let hit = best(&volume, &["dorsal striatum of young adults", "shrinkage corrected"], &[]);
+    assert_eq!(hit["pubmed_id"], 19191878);
+
+    // Full rows 97-100: T cell populations estimated in the breast cancer
+    // tumors of BXD x C3-1TAg F1 females, found past the first 100 hits.
+    let mut timer = search_page("TIMER AND group:BXD", 1, token).await;
+    timer.extend(search_page("TIMER AND group:BXD", 2, token).await);
+    let ending = |tail: &str| -> &Value {
+        timer
+            .iter()
+            .find(|h| h["description"].as_str().unwrap().ends_with(tail))
+            .unwrap_or_else(|| panic!("no TIMER trait ending {tail}"))
+    };
+    ending("T.cell.gamma.delta_CIBERSORT"); // row 97
+    ending("T.cell.CD4..naive_XCELL"); // row 98 ...
+    let cd8_naive = ending("T.cell.CD8..naive_XCELL"); // ... and 98-99
+    assert_lod(cd8_naive, 2.6767753665261841967);
+    if db {
+        assert_eq!(cd8_naive["locus"], "rsm10000001634");
+    }
+    let cd8 = ending("T.cell.CD8._TIMER"); // row 100: the model named in the description
+    let model = cd8["description"].as_str().unwrap();
+    assert!(model.contains("C3 (1)-TAg") && model.contains("JAX Stock 013591"));
+
+    // Full rows 106-107: serum TSH binding inhibition after 2 and 3
+    // immunizations with TSHR A-subunit adenovirus, and its PubMed id.
+    let tsh = search("TSH AND binding AND group:BXD", token).await;
+    let two = best(&tsh, &["1 week after 2 immunizations"], &[]);
+    let three = best(&tsh, &["4 weeks after 3 immunizations"], &[]);
+    assert_lod(two, 7.8087209638496242192);
+    assert_lod(three, 11.292110851469207233);
+    assert_eq!(three["pubmed_id"], 25051451);
+    if db {
+        assert_eq!(two["locus"], "rs3672987");
+        assert_eq!(three["locus"], "rs3672987");
+    }
+
+    // Full row 114: mean of 3-MT in male BXD striatum after saline.
+    let mptp = search("MPTP AND group:BXD", token).await;
+    let saline = best(
+        &mptp,
+        &["3-methoxytyramine", "2-4 month-old males 48 h after saline injection"],
+        &[],
+    );
+    assert_close(saline["mean"].as_f64().unwrap(), 0.39399999976158139869, "3-MT mean");
+}
+
+/// Full-benchmark rows answered from the database-backed endpoints.
+async fn full_benchmark_database_rows(token: &str) {
+    // Full row 0: three taxonomic families.
+    let species = get_json("/species", token).await;
+    let families: BTreeSet<&str> = species
+        .as_array()
+        .unwrap()
+        .iter()
+        .map(|s| s["family"].as_str().unwrap())
+        .collect();
+    assert_eq!(families, ["Other Metazoa", "Plants", "Vertebrates"].into_iter().collect());
+    // Full row 3: Drosophila's reference assembly.
+    let fly = get_json("/species/drosophila", token).await;
+    assert!(fly["menu_name"].as_str().unwrap().contains("dm6"));
+
+    // Group questions: the list (family, species, genetic type) plus every
+    // group's detail (description, set code).
+    let list = get_json("/groups", token).await;
+    let list = list.as_array().unwrap();
+    let bxd = list.iter().find(|g| g["name"] == "BXD").unwrap();
+    assert_eq!(bxd["genetic_type"], "riset"); // full row 12
+    let mut details = Vec::new();
+    for g in list {
+        details.push(get_json(&format!("/groups/{}", g["name"].as_str().unwrap()), token).await);
+    }
+    let detail = |name: &str| details.iter().find(|d| d["name"] == name).unwrap();
+    // Full rows 10, 13, 15: genotypes, the full name of DOL, a category.
+    assert_eq!(detail("HIV-1Tg")["family"], "Groups Without Genotypes"); // no genotypes
+    assert!(detail("DOL")["full_name"].as_str().unwrap().contains("Boon Lung Infection"));
+    assert_eq!(detail("B6D2F2")["family"], "Crosses, AIL, HS");
+    // Full row 11: eight population categories.
+    let categories: BTreeSet<&str> = details.iter().filter_map(|d| d["family"].as_str()).collect();
+    assert_eq!(categories.len(), 8, "{categories:?}");
+    // Full row 20: the reference-population RI panel from BALB/cBy and C57BL/6By.
+    let panel: Vec<&str> = details
+        .iter()
+        .filter(|d| d["family"].as_str().is_some_and(|f| f.starts_with("Reference")))
+        .filter(|d| d["description"].as_str().unwrap_or_default().contains("BALB/cBy"))
+        .map(|d| d["name"].as_str().unwrap())
+        .collect();
+    assert_eq!(panel, ["CXB"]);
+    // Full row 21: the HS rat is outbred.
+    assert!(detail("HSNIH-Palmer")["description"].as_str().unwrap().to_lowercase().contains("outbred"));
+    // Full row 23: the set coded RHV.
+    let coded: Vec<&str> = details
+        .iter()
+        .filter(|d| d["group_code"] == "RHV")
+        .map(|d| d["name"].as_str().unwrap())
+        .collect();
+    assert_eq!(coded, ["HIV-1Tg"]);
+    // Full row 24: the human set on brain connectivity.
+    let human = group_names("species=human", token).await;
+    let connectivity: Vec<&str> = details
+        .iter()
+        .filter(|d| human.contains(d["name"].as_str().unwrap()))
+        .filter(|d| {
+            let text = format!("{} {}", d["full_name"], d["description"]).to_lowercase();
+            text.contains("connectom") || text.contains("connectivity")
+        })
+        .map(|d| d["name"].as_str().unwrap())
+        .collect();
+    assert_eq!(connectivity, ["HCP"]);
+
+    // Group lookups by family, species or text.
+    let hrdp = group_names("family=HRDP", token).await;
+    assert_eq!(nset(hrdp.iter().map(String::as_str)), nset(["HRDP_HXB_BXH_BP", "HRDP_HXB_BXH_Metb"])); // 7
+    assert_eq!(group_names("q=gulf", token).await, set_of(&["DOD-BXD-GWI"])); // 17
+    assert_eq!(group_names("q=B6MRLF2", token).await, set_of(&["B6MRLF2-D2MRLF2"])); // 18
+    assert_eq!(group_names("q=lens", token).await, set_of(&["B6-Lens"])); // 19
+    assert!(group_names("q=UCI", token).await.contains("Aging-Brain-UCI")); // 25
+    assert_eq!(group_names("q=islet", token).await, set_of(&["Islets-Gerling"])); // 26
+    assert_eq!(group_names("species=human&q=child", token).await, set_of(&["CANDLE"])); // 28
+    assert_eq!(group_names("q=CEPH", token).await, set_of(&["CEPH-2004", "CEPH-2009"])); // 29
+    assert_eq!(group_names("species=medaka", token).await, set_of(&["MIKK"])); // 31
+    assert_eq!(group_names("q=EBV", token).await, set_of(&["EBV_T_Cells_PERKINS"])); // 49
+    // Full row 41: the human sets (no genotype field: all of them).
+    assert_eq!(
+        nset(human.iter().map(String::as_str)),
+        nset([
+            "GTEx", "GTEx_v5", "GTEx_v8", "HCP", "EBV_T_Cells_PERKINS", "HB", "HLC", "HLT", "HSB",
+            "TIGEM_Retina_RNA_Seq", "Islets_Gerling", "Brain_Normal_NIH_Gibbs", "Aging_Brain_UCI",
+            "AD_cases_controls", "AD_cases_controls_Myers", "CANDLE", "CEPH_2004", "CEPH_2009",
+        ])
+    );
+    // Full row 48: CANDLE's species.
+    let candle = list.iter().find(|g| g["name"] == "CANDLE").unwrap();
+    let candle_species = get_json(&format!("/species/{}", candle["species"].as_str().unwrap()), token).await;
+    assert!(candle_species["full_name"].as_str().unwrap().contains("Homo sapiens"));
+    // Full row 50: the human transcriptome resource with the most datasets.
+    let mut counts = Vec::new();
+    for name in &human {
+        let datasets = get_json(&format!("/groups/{name}/datasets"), token).await;
+        counts.push((datasets.as_array().unwrap().len(), name.clone()));
+    }
+    counts.sort();
+    assert!(counts.last().unwrap().1.starts_with("GTEx"), "{counts:?}");
+    // Full row 44: the human dataset with both log2-transformed and
+    // TPM-normalised expression across tissues: only GTEx v8 has TPM
+    // datasets, and they are all on the log2 scale.
+    let mut tpm_groups = BTreeSet::new();
+    for name in &human {
+        let datasets = get_json(&format!("/groups/{name}/datasets"), token).await;
+        for dataset in datasets.as_array().unwrap() {
+            if dataset["full_name"].as_str().unwrap().contains("TPM") {
+                tpm_groups.insert(name.clone());
+                assert_eq!(dataset["data_scale"], "log2", "{}", dataset["name"]);
+            }
+        }
+    }
+    assert_eq!(tpm_groups, set_of(&["GTEx_v8"]));
+
+    // Full row 33: the mapping tools in use, including those no group uses.
+    let methods = get_json("/mapping-methods", token).await;
+    let tools: BTreeSet<&str> = methods
+        .as_array()
+        .unwrap()
+        .iter()
+        .map(|m| m["name"].as_str().unwrap())
+        .collect();
+    assert_eq!(tools, ["FastMap", "HappyR", "PLINK", "Rqtl", "qtlreaper"].into_iter().collect());
+    // Full row 34: the preferred tool for heterogeneous stock and outbred
+    // populations is Rqtl (HSNIH-RGSMC maps with qtlreaper, so it is a
+    // majority, not a rule).
+    for name in ["HSNIH-Palmer", "DO", "CC"] {
+        let group = list.iter().find(|g| g["name"] == name).unwrap();
+        assert_eq!(group["mapping_method"], "Rqtl", "{name}");
+    }
+    // Full row 35: GN602 is the BXD phenotype dataset.
+    let gn602 = get_json("/accessions/GN602", token).await;
+    assert_eq!(gn602["category"], "publish");
+    assert_eq!(gn602["group"], "BXD");
+    assert_eq!(gn602["title"], "BXD Published Phenotypes");
+
+    // Full rows 56-58: BXD datasets by topic.
+    let datasets = get_json("/groups/BXD/datasets", token).await;
+    let named = |word: &str| -> BTreeSet<String> {
+        datasets
+            .as_array()
+            .unwrap()
+            .iter()
+            .map(|d| d["name"].as_str().unwrap())
+            .filter(|n| n.to_lowercase().contains(word))
+            .map(norm)
+            .collect()
+    };
+    assert_eq!(named("gut"), nset(["UTHSC_GutExL_0414", "UTHSC_GutGL_0414"]));
+    assert_eq!(named("neut"), nset(["UTHSC_Neut_EL_1014", "UTHSC_Neut_1014"]));
+    assert_eq!(
+        named("germ"),
+        nset([
+            "JAX_BXD_Germ_Cells_edgeR_0820",
+            "JAX_BXD_Germ_Cells_edgeR_log2_0820",
+            "JAX_BXD_Germ_Cells_edgeR_log2z_0820",
+        ])
+    );
+
+    // Trait questions. Short names the database stores verbatim:
+    let by_abbreviation = |abbreviation: &'static str| {
+        let token = token.to_string();
+        async move {
+            let traits = get_json(&format!("/groups/BXD/traits?abbreviation={abbreviation}"), &token).await;
+            let traits = traits.as_array().unwrap();
+            assert_eq!(traits.len(), 1, "{abbreviation}");
+            traits[0].clone()
+        }
+    };
+    let otu = by_abbreviation("OTU_310_CD_norm_log10").await;
+    assert_eq!(otu["dataset"], "BXDPublish"); // full row 40: set BXD
+    assert!(description(&otu).contains("EPFL LISP3 Cohort")); // 105
+    assert_close(otu["mean"].as_f64().unwrap(), 7.8246294298479632801, "OTU mean"); // 109
+    let serotonin = by_abbreviation("5HT_MB_M").await;
+    assert_eq!(
+        serotonin["url"],
+        "https://genenetwork.org/show_trait?trait_id=17985&dataset=BXDPublish"
+    ); // 53
+    assert!(description(&serotonin).to_lowercase().contains("serotonin")); // 54
+    // BXD's full trait listing, for short names the database does not store
+    // verbatim (see the module comment).
+    let listing = get_json("/groups/BXD/traits", token).await;
+    let listing = listing.as_array().unwrap();
+    let mptp = find_sanitised(listing, "5HT_CPU_Sal_MPTP_M");
+    assert!(norm(description(mptp)).contains(&norm(
+        "MPTP 1-methyl-4-phenyl-1,2,3,6-tetrahydropyridine response 12.5 mg/kg ip, serotonin 5-HT concentration in caudate-putamen striatum in males 48 h after injection saline-MPTP group [ug/mg total protein]"
+    ))); // 71
+    let amph = find_sanitised(listing, "AMPHLOC5mg");
+    assert_close(amph["mean"].as_f64().unwrap(), 7220.8214285714284415, "AMPHLOC5mg mean");
+    assert_lod(amph, 3.4041048067742516459);
+    assert_eq!(amph["locus"], "D4Mit178");
+    assert!(norm(description(amph)).contains(&norm(
+        "Amphetamine response 5 mg/kg ip, locomotor activity from 0-60 min after injection [cm]"
+    ))); // 83-84
+    let trait_23391 = get_json("/groups/BXD/traits/23391", token).await;
+    assert_eq!(trait_23391["abbreviation"], "OTU_310_CD_norm_log10"); // 110
+    let trait_15959 = get_json("/groups/BXD/traits/15959", token).await;
+    assert_eq!(
+        trait_15959["url"],
+        "https://genenetwork.org/show_trait?trait_id=15959&dataset=BXDPublish"
+    ); // 111
+
+    // Short names the benchmark sanitises (see the module comment).
+    let ratio = find_sanitised(listing, "AAP_Lys_CD");
+    assert_close(ratio["mean"].as_f64().unwrap(), 0.0045021891883398230949, "AAP/Lys mean"); // 78
+    assert_eq!(ratio["pubmed_id"], 25215496); // 79
+    let alcohol = find_sanitised(listing, "20__Alcohol_intake_W4D4_all_Females"); // 80
+    assert!(norm(description(alcohol)).contains(&norm(
+        "Ethanol response, consumption of 20% v/v EtOH using the drinking in the dark DID method, 4 h access on day 4 week 4 normally housed 4-6 month old females 5 week baseline [g/kg]"
+    )));
+    let alt = find_sanitised(listing, "ALT_d0__mean_F"); // 88
+    assert!(description(alt).contains("Liver injury day 0 in adult females before carbon tetrachloride challenge"));
+    let strep = find_sanitised(listing, "Streptococcus_genus_CD_norm_log10"); // 101
+    assert_lod(strep, 2.6777190182706016586);
+    assert_eq!(strep["locus"], "rsm10000014670");
+    let chow = find_sanitised(listing, "TAG_56_7__2_CD"); // 103-104
+    let high = find_sanitised(listing, "TAG_56_7__2_HFD");
+    assert_lod(chow, 1.9755325276024489067);
+    assert_eq!(chow["locus"], "rs27728896");
+    assert_lod(high, 3.5849473664517539362);
+    assert_eq!(high["locus"], "rsm10000014270");
+    assert!(description(chow).contains("TG(16:0_18:1_22:6)"));
+}
+
 #[tokio::test(flavor = "multi_thread", worker_threads = 2)]
 async fn benchmark_questions() {
     let gn3 = spawn(Router::new().route("/api/search/", get(serve_gn3))).await;
@@ -335,6 +715,8 @@ async fn benchmark_questions() {
         assert_eq!(cd8["locus"], "rs29338660");
     }
 
+    full_benchmark_search_rows(token, db).await;
+
     if !db {
         return;
     }
@@ -531,4 +913,6 @@ async fn benchmark_questions() {
         colon,
         set_of(&["EPFL-LISP_BXD_Col-CD+HFD0917", "EPFL-LISP_BXD_Col-CD0917", "EPFL-LISP_BXD_Col-HFD0917"])
     );
+
+    full_benchmark_database_rows(token).await;
 }
diff --git a/tests/dataset_by_name.rs b/tests/dataset_by_name.rs
index 7f2e182..6f7cde6 100644
--- a/tests/dataset_by_name.rs
+++ b/tests/dataset_by_name.rs
@@ -63,3 +63,31 @@ async fn dataset_by_name_unknown_dataset_returns_404() {
     assert_eq!(error["code"], "dataset_not_found");
     assert_eq!(error["operation_id"], "dataset_by_name");
 }
+
+/// A dataset says what it was measured in (the Tissue its ProbeFreeze
+/// points to), here and in the group's dataset list.
+#[tokio::test]
+async fn datasets_report_their_tissue() {
+    if !common::db_available() {
+        eprintln!(
+            "skipping datasets_report_their_tissue: no usable database (check SQL_URI credentials)"
+        );
+        return;
+    }
+    let Some(token) = common::auth_token().await else {
+        eprintln!("skipping datasets_report_their_tissue: no token (see docs/gn-auth.md)");
+        return;
+    };
+
+    let response = common::get_with_token("GET /datasets/Br_U_0803_M", "/datasets/Br_U_0803_M", &token).await;
+    assert_eq!(response.status(), StatusCode::OK);
+    let body = response.into_body().collect().await.unwrap().to_bytes();
+    let dataset: Value = common::data(&body);
+    assert_eq!(dataset["tissue"], "Brain mRNA");
+
+    let response = common::get_with_token("GET /groups/BXD/datasets", "/groups/BXD/datasets", &token).await;
+    let body = response.into_body().collect().await.unwrap().to_bytes();
+    let datasets: Vec<Value> = common::data(&body);
+    let gut = datasets.iter().find(|d| d["name"] == "UTHSC_GutGL_0414").unwrap();
+    assert_eq!(gut["tissue"], "Gastrointestinal mRNA");
+}
diff --git a/tests/envelope.rs b/tests/envelope.rs
index 8c5160c..4455406 100644
--- a/tests/envelope.rs
+++ b/tests/envelope.rs
@@ -94,6 +94,9 @@ async fn next_links_resolve() {
         "/groups/BXD/strains",
         "/groups/BXD/case-attributes",
         "/groups/BXD/datasets",
+        "/mapping-methods",
+        "/accessions/GN602",
+        "/accessions/GN1",
         "/groups/BXD/traits?abbreviation=5HT_MB_M",
         "/groups/BXD/traits/17985",
         "/groups/BXD/traits/17985/values",
diff --git a/tests/group_by_name.rs b/tests/group_by_name.rs
index 654bd51..5cdd42e 100644
--- a/tests/group_by_name.rs
+++ b/tests/group_by_name.rs
@@ -94,3 +94,26 @@ async fn group_by_name_unknown_group_returns_404() {
     assert_eq!(error["next"], "/groups");
     assert_eq!(error["request_id"], request_id);
 }
+
+/// A group's record names its mapping tool next to the raw id.
+#[tokio::test]
+async fn group_by_name_names_the_mapping_tool() {
+    if !common::db_available() {
+        eprintln!(
+            "skipping group_by_name_names_the_mapping_tool: no usable database (check SQL_URI credentials)"
+        );
+        return;
+    }
+    let Some(token) = common::auth_token().await else {
+        eprintln!("skipping group_by_name_names_the_mapping_tool: no token (see docs/gn-auth.md)");
+        return;
+    };
+
+    let response = common::get_with_token("GET /groups/HSNIH-Palmer", "/groups/HSNIH-Palmer", &token).await;
+    assert_eq!(response.status(), StatusCode::OK);
+    let body = response.into_body().collect().await.unwrap().to_bytes();
+    let group: Value = common::data(&body);
+
+    assert_eq!(group["mapping_method_id"], "2");
+    assert_eq!(group["mapping_method"], "Rqtl");
+}
diff --git a/tests/groups.rs b/tests/groups.rs
index bbed73c..7035217 100644
--- a/tests/groups.rs
+++ b/tests/groups.rs
@@ -92,3 +92,32 @@ async fn groups_filters_by_family_species_and_text() {
     assert!(rat_reference.contains(&"HXBBXH".to_string()));
     assert!(!rat_reference.contains(&"BXD".to_string()));
 }
+
+/// Each group reports the mapping tool offered for it (the MappingMethod
+/// its mapping_method_id points to), or null when it has none.
+#[tokio::test]
+async fn groups_report_the_mapping_tool_offered_for_them() {
+    if !common::db_available() {
+        eprintln!(
+            "skipping groups_report_the_mapping_tool_offered_for_them: no usable database (check SQL_URI credentials)"
+        );
+        return;
+    }
+    let Some(token) = common::auth_token().await else {
+        eprintln!("skipping groups_report_the_mapping_tool_offered_for_them: no token (see docs/gn-auth.md)");
+        return;
+    };
+
+    let response = common::get_with_token("GET /groups", "/groups", &token).await;
+    assert_eq!(response.status(), StatusCode::OK);
+    let body = response.into_body().collect().await.unwrap().to_bytes();
+    let groups: Vec<Value> = common::data(&body);
+    let tool = |name: &str| -> Value {
+        groups.iter().find(|g| g["name"] == name).unwrap()["mapping_method"].clone()
+    };
+
+    assert_eq!(tool("BXD"), "qtlreaper");
+    assert_eq!(tool("HSNIH-Palmer"), "Rqtl");
+    assert_eq!(tool("HSNIH-RGSMC"), "qtlreaper"); // not every outbred set maps with Rqtl
+    assert!(tool("Oregon-R_x_2b3").is_null());
+}
diff --git a/tests/mapping_methods.rs b/tests/mapping_methods.rs
new file mode 100644
index 0000000..8cd5043
--- /dev/null
+++ b/tests/mapping_methods.rs
@@ -0,0 +1,31 @@
+use axum::http::StatusCode;
+use http_body_util::BodyExt;
+use serde_json::Value;
+
+mod common;
+
+/// Needs a live MariaDB connection (SQL_URI) and a valid token; skips
+/// rather than fails when either is missing, same as groups.rs.
+#[tokio::test]
+async fn mapping_methods_lists_the_tools() {
+    if !common::db_available() {
+        eprintln!(
+            "skipping mapping_methods_lists_the_tools: no usable database (check SQL_URI credentials)"
+        );
+        return;
+    }
+    let Some(token) = common::auth_token().await else {
+        eprintln!("skipping mapping_methods_lists_the_tools: no token (see docs/gn-auth.md)");
+        return;
+    };
+
+    let response = common::get_with_token("GET /mapping-methods", "/mapping-methods", &token).await;
+    assert_eq!(response.status(), StatusCode::OK);
+    let body = response.into_body().collect().await.unwrap().to_bytes();
+    let methods: Vec<Value> = common::data(&body);
+
+    // The MappingMethod table lists tools no group uses (PLINK, FastMap).
+    let names: Vec<&str> = methods.iter().map(|m| m["name"].as_str().unwrap()).collect();
+    assert_eq!(names, ["qtlreaper", "Rqtl", "HappyR", "PLINK", "FastMap"]);
+    assert_eq!(methods[0]["id"], 1);
+}
diff --git a/tests/openapi.rs b/tests/openapi.rs
index a4dd1ba..5341d0a 100644
--- a/tests/openapi.rs
+++ b/tests/openapi.rs
@@ -36,6 +36,8 @@ async fn openapi_json_describes_all_endpoints() {
         "/groups/{group}/traits/{trait_id}/values",
         "/groups/{group}/datasets",
         "/publications/{pubmed_id}/traits",
+        "/mapping-methods",
+        "/accessions/{accession}",
         "/datasets/{dataset}",
         "/datasets/{dataset}/probesets/{probeset}",
         "/datasets/{dataset}/probesets/{probeset}/values",