about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/gemma.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/gemma.rs b/tests/gemma.rs
index 2529174..d08a088 100644
--- a/tests/gemma.rs
+++ b/tests/gemma.rs
@@ -66,7 +66,9 @@ async fn compute_gemma_maps_a_qtl_from_the_bxd_fixtures() {
     let first = &rows[0];
     assert!(first.get("chr").is_some(), "{first}");
     assert!(first.get("rs").is_some(), "{first}");
-    assert!(first.get("p_wald").is_some(), "lmm defaults to 4 (all tests): {first}");
+    // lmm defaults to 9 (GeneNetwork's convention); observed to behave
+    // like LRT, carrying p_lrt rather than p_wald.
+    assert!(first.get("p_lrt").is_some(), "{first}");
 }
 
 #[tokio::test]
@@ -80,7 +82,9 @@ async fn compute_gemma_rejects_an_out_of_range_lmm() {
         "genotype_file": test_data_path("BXD_geno.txt.gz"),
         "snps_file": test_data_path("BXD_snps.txt"),
         "trait_values": [1.0, 2.0],
-        "lmm": 9,
+        // 9 is now accepted (GeneNetwork's convention); 5-8 are stock-
+        // invalid and untested, so they're still rejected.
+        "lmm": 5,
     });
     let response = common::post_json_with_token(
         "POST /compute/gemma (bad lmm)",