diff options
author | Muriithi Frederick Muriuki | 2021-09-08 06:52:01 +0300 |
---|---|---|
committer | Muriithi Frederick Muriuki | 2021-09-08 07:02:20 +0300 |
commit | 31ca02d1f095c2cc667e5b7d49131d702982f321 (patch) | |
tree | 734f3a379fac6f8648a9228fb6f89f30ea2952b9 /scripts | |
parent | d4943f1d01d89a3928c905f80914a23144126c8e (diff) | |
download | genenetwork3-31ca02d1f095c2cc667e5b7d49131d702982f321.tar.gz |
Fix the traits order computations for clustering
Issue:
https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi
* gn3/computations/heatmap.py: Fix ordering function
* tests/unit/computations/test_heatmap.py: update test
The order of the traits is important for the clustering algorithm, since the
clustering seems to use the distance of one trait from another to determine
how to order them.
This commit also gets rid of the xoffset argument that is not important to
the ordering, and was used in the older GN1 to determine how to draw the
clustering lines.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions