diff options
| author | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-07 21:01:40 +0300 |
|---|---|---|
| committer | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-07 21:01:40 +0300 |
| commit | 85b63abcfdbae235d292a6de4bd47ffe6ba6dafd (patch) | |
| tree | 8b39f26fad90eaa27751fd061ab1cbc91ae95b08 /src/search | |
| parent | b68531c40d91cadfd868e4b65ff92989ffd4fb27 (diff) | |
| parent | e912c87deaf220fd5fce1299d669e8fa992b5338 (diff) | |
| download | genenetwork4-85b63abcfdbae235d292a6de4bd47ffe6ba6dafd.tar.gz | |
Merge origin/main (e912c87: /search gains lod, locus, sort/order) into
native-search-engine. Resolution: his route-level additions compose above the engine seam — the handler now validates sort/order, asks the engine for SORT_FETCH_LIMIT (1000) when ranking, maps SearchError via the seam's engine_error, then computes lod, sorts, truncates to limit and fills loci; lod/locus join SearchHit in src/search/mod.rs. His tests pass through the seam. KNOWN at this commit: the parity floor is BLOCKED (36 shapes) — the route's new truncate(limit) exposes that route-level full-set grading was a calibration-stub artifact (real gn3 caps at per_page; the stub ignored it). Harness fix queued: set-equality moves to engine level, status + top-10 stay route level. Landed together with that fix.
Diffstat (limited to 'src/search')
| -rw-r--r-- | src/search/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/search/mod.rs b/src/search/mod.rs index 936c977..cb76f60 100644 --- a/src/search/mod.rs +++ b/src/search/mod.rs @@ -122,6 +122,12 @@ pub struct SearchHit { pub mean: Option<f64>, pub additive: Option<f64>, pub lrs: Option<f64>, + /// LOD score, LRS / 4.61; the route computes it from `lrs`. + pub lod: Option<f64>, + /// Name of the peak marker (a Geno.Name such as "rsm10000012461"), + /// looked up in PublishXRef for phenotype hits; null for other + /// hits, or when the database is unavailable. + pub locus: Option<String>, pub geno_chr: Option<String>, pub geno_mb: Option<f64>, pub inbredsetcode: Option<String>, |
