about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp8
-rw-r--r--src/param.cpp8
2 files changed, 14 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ee6d597..284f36a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -33,7 +33,13 @@ int main(int argc, char *argv[]) {
   gsl_set_error_handler (&gemma_gsl_error_handler);
 
   gemmaguile::global_start_guile();
-  gemmaguile::start_test();
+  // No start_test() here: it loaded src/guile/examples.scm relative to the
+  // working directory and printed 'elem 0 = 1.000000 ...' to stdout on every
+  // run, so gemma only started from the source root (elsewhere the load threw
+  // and the process still exited 0, with no output), and a caller parsing
+  // stdout -- gemma-wrapper's JSON, for one -- got four stray lines.  The
+  // Guile binding is still initialised for the version banner below, and the
+  // example is still runnable from a test, not from main().
 
   if (argc <= 1) {
     cGemma.PrintHeader();
diff --git a/src/param.cpp b/src/param.cpp
index 96a9cd2..e2a61ea 100644
--- a/src/param.cpp
+++ b/src/param.cpp
@@ -946,7 +946,13 @@ void PARAM::CheckParam(void) {
   if (!loco.empty()) {
     enforce_msg((a_mode >= 1 && a_mode <= 4) || a_mode == 9 || a_mode == 21 || a_mode == 22,
                 "LOCO only works with LMM and K");
-    // enforce_msg(file_bfile.empty(), "LOCO does not work with PLink (yet)");
+    // PLINK input cannot do LOCO: the check used to be commented out, and
+    // measured against this build and GEMMA 0.98.6, '-bfile ... -loco 1' and
+    // '-loco 2' return the same K -- -loco is ignored without a word, so a run
+    // that looks like a LOCO scan is really N identical full-data scans.  An
+    // error is the only honest answer; BIMBAM (-g) and the lmdb store both work.
+    enforce_msg(file_bfile.empty(),
+                "LOCO does not work with PLINK (-bfile): use BIMBAM (-g) or an lmdb store");
     enforce_msg(file_gxe.empty(), "LOCO does not support GXE (yet)");
     if (!is_mdb)
       enforce_msg(!file_anno.empty(), "Without mdb LOCO requires annotation file (-a switch)");