From 522144c0ecc7404e29793bfca36377c05d6649b2 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 8 Dec 2017 11:23:06 +0000 Subject: Changed banner and behaviour --- src/gemma.cpp | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) (limited to 'src/gemma.cpp') 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 +#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; } @@ -154,9 +150,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; @@ -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 -#endif void GEMMA::WriteLog(int argc, char **argv, PARAM &cPar) { string file_str; -- cgit v1.2.3