diff options
author | Pjotr Prins | 2017-12-08 11:23:06 +0000 |
---|---|---|
committer | Pjotr Prins | 2017-12-08 11:23:06 +0000 |
commit | 522144c0ecc7404e29793bfca36377c05d6649b2 (patch) | |
tree | 97fe1d1f193d6adcf5abafba580720cb3e3f8211 /src/gemma.cpp | |
parent | 6ce9ada43491b773bcbb459d6f12d45e2d901ea0 (diff) | |
download | pangemma-522144c0ecc7404e29793bfca36377c05d6649b2.tar.gz |
Changed banner and behaviour
Diffstat (limited to 'src/gemma.cpp')
-rw-r--r-- | src/gemma.cpp | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/src/gemma.cpp b/src/gemma.cpp index 50b13b1..39402b5 100644 --- a/src/gemma.cpp +++ b/src/gemma.cpp @@ -71,20 +71,16 @@ void gemma_gsl_error_handler (const char * reason, exit(22); } +#if defined(OPENBLAS) && !defined(OPENBLAS_LEGACY) +#include <openblas_config.h> +#endif + void GEMMA::PrintHeader(void) { - cout << endl; - cout << "*********************************************************" << endl; - cout << " Genome-wide Efficient Mixed Model Association (GEMMA) " << endl; - cout << " Version " << version << ", " << date - << " " << endl; - cout << " Visit http://www.xzlab.org/software.html For Updates " << endl; - cout << " (C) " << year << " Xiang Zhou " - << endl; - cout << " GNU General Public License " << endl; - cout << " For Help, Type ./gemma -h " << endl; - cout << "*********************************************************" << endl; - cout << endl; + cout << + "GEMMA " << version << " (" << date << ") by Xiang Zhou et al. (C) 2012-" << year << endl; + cout << + " http://www.xzlab.org/software.html, https://github.com/genetics-statistics" << endl; return; } @@ -155,9 +151,6 @@ void GEMMA::PrintLicense(void) { void GEMMA::PrintHelp(size_t option) { if (option == 0) { cout << endl; - cout << " GEMMA version " << version << ", released on " << date << endl; - cout << " implemented by Xiang Zhou" << endl; - cout << endl; cout << " type ./gemma -h [num] for detailed helps" << endl; cout << " options: " << endl; cout << " 1: quick guide" << endl; @@ -767,7 +760,7 @@ void GEMMA::Assign(int argc, char **argv, PARAM &cPar) { str.clear(); str.assign(argv[i]); cPar.file_mbfile = str; - } else if (strcmp(argv[i], "-silence") == 0) { + } else if (strcmp(argv[i], "-silence") == 0 || strcmp(argv[i], "--quiet") == 0) { debug_set_quiet_mode(true); } else if (strcmp(argv[i], "-g") == 0) { if (argv[i + 1] == NULL || argv[i + 1][0] == '-') { @@ -3089,9 +3082,6 @@ void GEMMA::BatchRun(PARAM &cPar) { } #include "Eigen/Dense" -#if defined(OPENBLAS) && !defined(OPENBLAS_LEGACY) -#include <openblas_config.h> -#endif void GEMMA::WriteLog(int argc, char **argv, PARAM &cPar) { string file_str; |