diff options
author | Pjotr Prins | 2017-12-08 10:49:25 +0000 |
---|---|---|
committer | Pjotr Prins | 2017-12-08 10:49:25 +0000 |
commit | 6ce9ada43491b773bcbb459d6f12d45e2d901ea0 (patch) | |
tree | 42cc81cda056fcce507b63095deaf2f26c630b9a | |
parent | aa70e2a33703dbe519e7729184392759c190e416 (diff) | |
download | pangemma-6ce9ada43491b773bcbb459d6f12d45e2d901ea0.tar.gz |
Legacy mode does not show logl_H1 column in output
-rw-r--r-- | src/gemma.cpp | 1 | ||||
-rw-r--r-- | src/lmm.cpp | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/gemma.cpp b/src/gemma.cpp index df8934e..50b13b1 100644 --- a/src/gemma.cpp +++ b/src/gemma.cpp @@ -1601,6 +1601,7 @@ void GEMMA::Assign(int argc, char **argv, PARAM &cPar) { debug_set_strict_mode(true); } else if (strcmp(argv[i], "-legacy") == 0) { debug_set_legacy_mode(true); + warning_msg("you are running in legacy mode - support may drop in future versions of gemma"); } else { cout << "error! unrecognized option: " << argv[i] << endl; cPar.error = true; diff --git a/src/lmm.cpp b/src/lmm.cpp index ecc8231..91354e1 100644 --- a/src/lmm.cpp +++ b/src/lmm.cpp @@ -112,7 +112,8 @@ void LMM::WriteFiles() { outfile << "se" << "\t"; } - outfile << "logl_H1" << "\t"; // we may make this an option + if (!is_legacy_mode()) + outfile << "logl_H1" << "\t"; // we may make this an option switch(a_mode) { case 1: @@ -144,7 +145,8 @@ void LMM::WriteFiles() { outfile << st.se << "\t"; } - outfile << st.logl_H1 << "\t"; + if (!is_legacy_mode()) + outfile << st.logl_H1 << "\t"; switch(a_mode) { case 1: |