diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-15 01:27:39 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-15 01:27:39 +0000 |
| commit | 41c70f042731e36fb91b8fb3f4f393a4aa654e9d (patch) | |
| tree | 25c8a8ffcccd7a6e533686c0906fc8c44ad89ef3 /test/python | |
| parent | 4dbb553d5e4e48a785bbb5f4b97a84836eef296a (diff) | |
| download | genenetwork4-41c70f042731e36fb91b8fb3f4f393a4aa654e9d.tar.gz | |
correlation: the sample-axis engine path, with the decided semantics
src/correlation.rs now holds the part the engine does not offer in memory, and nothing of the arithmetic: `Pearson`/`Spearman` and their p-values are correlation_rust's (and GSL's). What is ours is the alignment into the engine's parser, the minimum-overlap gate, the ordering and top-N: - alignment is by individual, never by position: an individual the target trait lacks becomes "NA", which the engine's parser drops together with its reference value, so a missing observation costs one pair, not the row; - minimum overlap 6, so a two- or four-point +-1 cannot appear; - ordering reuses correlation_rust's own `custom_float_sorter` -- |r| descending, NaNs last -- so GN2, GN3 and GN4 sort identically; - top-N after the sort, clamped to GN2's 20000 ceiling; - bicor is refused by name with the methods that exist, rather than answered with something else. Tests cover both methods, the six-pair minimum, name alignment across a reordered and sparse candidate, the ordering with top-N, and the method parsing. The route is still the stub; wiring it to the bulk fetch is next.
Diffstat (limited to 'test/python')
0 files changed, 0 insertions, 0 deletions
