about summary refs log tree commit diff
path: root/src/param.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/param.cpp')
-rw-r--r--src/param.cpp8
1 files changed, 7 insertions, 1 deletions
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)");