[Genabel-commits] r1347 - pkg/ProbABEL/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Oct 16 16:08:47 CEST 2013
Author: lckarssen
Date: 2013-10-16 16:08:47 +0200 (Wed, 16 Oct 2013)
New Revision: 1347
Modified:
pkg/ProbABEL/src/command_line_settings.cpp
pkg/ProbABEL/src/main.cpp
Log:
Some changes in the screen output of ProbABEL. Now the 'loading'-type messages are more strategically placed so that it is easier to debug where things go wrong when reading the input files. Partly in response to bug #4919.
Modified: pkg/ProbABEL/src/command_line_settings.cpp
===================================================================
--- pkg/ProbABEL/src/command_line_settings.cpp 2013-10-16 13:52:47 UTC (rev 1346)
+++ pkg/ProbABEL/src/command_line_settings.cpp 2013-10-16 14:08:47 UTC (rev 1347)
@@ -375,4 +375,5 @@
exit(1);
}
#endif
+ cout << endl;
}
Modified: pkg/ProbABEL/src/main.cpp
===================================================================
--- pkg/ProbABEL/src/main.cpp 2013-10-16 13:52:47 UTC (rev 1346)
+++ pkg/ProbABEL/src/main.cpp 2013-10-16 14:08:47 UTC (rev 1347)
@@ -133,12 +133,12 @@
void loadInvSigma(cmdvars& input_var, phedata& phd, masked_matrix& invvarmatrix)
{
- std::cout << "you are running mmscore...\n";
+ std::cout << "You are running mmscore...\n";
InvSigma inv(input_var.getInverseFilename(), &phd);
// invvarmatrix = inv.get_matrix();
//double par = 1.; //var(phd.Y)*phd.nids/(phd.nids-phd.ncov-1);
invvarmatrix.set_matrix(inv.get_matrix()); // = invvarmatrix * par;
- std::cout << " loaded InvSigma ..." << std::flush;
+ std::cout << " loaded InvSigma...\n" << std::flush;
}
void create_start_of_header(std::vector<std::ofstream*>& outfile,
@@ -387,20 +387,22 @@
input_var.printinfo();
+ cout << "Reading info data...\n" << flush;
mlinfo mli(input_var.getMlinfofilename(), input_var.getMapfilename());
int nsnps = mli.nsnps;
phedata phd;
+ cout << "Reading phenotype data...\n" << flush;
int interaction_cox = create_phenotype(phd, input_var);
masked_matrix invvarmatrix;
- std::cout << "Reading data..." << std::flush;
if (input_var.getInverseFilename() != NULL)
{
loadInvSigma(input_var, phd, invvarmatrix);
}
gendata gtd;
+ cout << "Reading genotype data... " << flush;
if (!input_var.getIsFvf())
{
// use the non-filevector input format
@@ -416,8 +418,8 @@
input_var.getNgpreds(), phd.nids_all, phd.nids,
phd.allmeasured, phd.idnames);
}
+ cout << "done.\n" << flush;
- std::cout << " loaded genotypic data..." << std::flush;
// estimate null model
#if COXPH
More information about the Genabel-commits
mailing list