about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-11-14 23:44:48 +0000
committerPjotr Prins <pjotr.public01@thebird.nl>2026-11-14 23:44:48 +0000
commit4679ce291bf714fd0c4337644d1f1ff202399a2e (patch)
tree3797a43b22fe0a70a2dba30980aa31e5da1cbd38
parent7a641da20c44eb2d469fb636db3b9c8f60f045e7 (diff)
downloadguix-bioinformatics-main.tar.gz
gn-rust-correlation: 12c2a37, from the genenetwork forge HEAD main
12c2a37 makes `Spearman' public. It was a private struct, so a caller
holding two value vectors could only compute the rank correlation by
going through `Compute' -- writing the dataset to a file and reading the
result out of a CSV. genenetwork4's /compute/correlation needs the
in-memory path, and its docs/correlations.md says why the p-value must be
the crate's rather than a rewrite.

The source now comes from https://git.genenetwork.org/correlation_rust
(the forge), where this is refs/heads/main; upstream on GitHub still sits
at 473ad82.

Hash note for future bumps: compute it from a *fresh clone*, not a
working tree. `guix hash -x` excludes VCS directories but not untracked
files, so a `output.txt` left behind by the crate's own tests changes the
hash and the build fails with a mismatch that looks like a wrong revision.
-rw-r--r--gn/packages/genenetwork-rust.scm13
1 files changed, 9 insertions, 4 deletions
diff --git a/gn/packages/genenetwork-rust.scm b/gn/packages/genenetwork-rust.scm
index 78e9130..8ddd89c 100644
--- a/gn/packages/genenetwork-rust.scm
+++ b/gn/packages/genenetwork-rust.scm
@@ -581,19 +581,24 @@ quantitative trait loci (QTL) in genetic datasets.")
     (license license:agpl3+))))
 
 (define-public gn-rust-correlation
-  (let ((commit "473ad82b6f4477bbbeeef977e3e9f830f59a9b7f")
-        (revision "1"))
+  ;; 12c2a37 makes `Spearman' public, so a caller holding two value vectors can
+  ;; compute the rank correlation without going through `Compute' -- which means
+  ;; writing the dataset to a file and reading the result out of a CSV.  That is
+  ;; what genenetwork4's /compute/correlation needs for its in-memory path; see
+  ;; its docs/correlations.md.
+  (let ((commit "12c2a37c3ef3a09f1ab0c5ea69b31b433b15f9f6")
+        (revision "2"))
     (package
       (name "gn-rust-correlation")
       (version (git-version "0.1.4" revision commit))
       (source (origin
                 (method git-fetch)
                 (uri (git-reference
-                      (url "https://github.com/Alexanderlacuna/correlation_rust")
+                      (url "https://git.genenetwork.org/correlation_rust")
                       (commit commit)))
                 (file-name (git-file-name name version))
                 (sha256
-                 (base32 "1xlasa4ggyynmnm890i7zlsqds7jfclmh5s6p582xlfdf75k9h5z"))))
+                 (base32 "15wxzbzf7l4qvfdjd5y51ymjg1knvy74xndlzdhh9gn53sm1a20b"))))
       (build-system cargo-build-system)
       (native-inputs (list gsl))
       (arguments (list #:install-source? #f))