From 06a2149ae0b1c849e208c3f9a6385be345bb7f15 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 26 Oct 2017 06:55:28 +0000 Subject: Changed SNPs into SNPs/var in output, ref https://github.com/genetics-statistics/GEMMA/issues/107#issuecomment-339475978 --- src/gemma.cpp | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) (limited to 'src') diff --git a/src/gemma.cpp b/src/gemma.cpp index f9a2fc9..650ba43 100644 --- a/src/gemma.cpp +++ b/src/gemma.cpp @@ -1989,8 +1989,8 @@ void GEMMA::BatchRun(PARAM &cPar) { vec_weight, vec_z2, cPar.ni_total, cPar.ns_total, cPar.ns_test); cout << "## number of total individuals = " << cPar.ni_total << endl; - cout << "## number of total SNPs = " << cPar.ns_total << endl; - cout << "## number of analyzed SNPs = " << cPar.ns_test << endl; + cout << "## number of total SNPs/var = " << cPar.ns_total << endl; + cout << "## number of analyzed SNPs/var = " << cPar.ns_test << endl; cout << "## number of variance components = " << cPar.n_vc << endl; cout << "Calculating the q vector ... " << endl; Calcq(cPar.n_block, vec_cat, vec_ni, vec_weight, vec_z2, Vq, q, @@ -2119,8 +2119,8 @@ void GEMMA::BatchRun(PARAM &cPar) { cout << "Study Panel: " << endl; cout << "## number of total individuals = " << cPar.ni_study << endl; - cout << "## number of total SNPs = " << cPar.ns_study << endl; - cout << "## number of analyzed SNPs = " << cPar.ns_test << endl; + cout << "## number of total SNPs/var = " << cPar.ns_study << endl; + cout << "## number of analyzed SNPs/var = " << cPar.ns_test << endl; cout << "## number of variance components = " << cPar.n_vc << endl; // compute q @@ -3053,7 +3053,7 @@ void GEMMA::BatchRun(PARAM &cPar) { } cout << "## number of blocks = " << BF.size() << endl; - cout << "## number of analyzed SNPs = " << vec_rs.size() << endl; + cout << "## number of analyzed SNPs/var = " << vec_rs.size() << endl; cout << "## grid size for hyperparameters = " << wab.size() << endl; cout << "## number of continuous annotations = " << kc << endl; cout << "## number of discrete annotations = " << kd << endl; @@ -3132,7 +3132,6 @@ void GEMMA::WriteLog(int argc, char **argv, PARAM &cPar) { tm *ptm = localtime(&rawtime); outfile << "## Date = " << asctime(ptm); - // ptm->tm_year<<":"<tm_month<<":"<tm_day":"<tm_hour<<":"<tm_min<