[Genabel-commits] r1474 - pkg/OmicABELnoMM/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Dec 17 17:14:05 CET 2013


Author: lckarssen
Date: 2013-12-17 17:14:05 +0100 (Tue, 17 Dec 2013)
New Revision: 1474

Modified:
   pkg/OmicABELnoMM/src/main.cpp
Log:
- fix name of command line argument from --ngreds to --ngpreds (nr of genomic predictors
- changed explanatory messages for some options
- A few whitespace fixes


Modified: pkg/OmicABELnoMM/src/main.cpp
===================================================================
--- pkg/OmicABELnoMM/src/main.cpp	2013-12-17 15:37:58 UTC (rev 1473)
+++ pkg/OmicABELnoMM/src/main.cpp	2013-12-17 16:14:05 UTC (rev 1474)
@@ -86,7 +86,7 @@
             if (pos != string::npos)
                 params.fnameY = string(optarg).substr (0, pos);
 
-            cout << "using -p traits in file " << optarg << endl;
+            cout << "using -p with phenotypes from file " << optarg << endl;
             break;
 
         case 'g':
@@ -97,7 +97,7 @@
             if (pos != string::npos)
                 params.fnameAR = string(optarg).substr (0, pos);
 
-            cout << "using -g geno in file " << optarg << endl;
+            cout << "using -g with genotype data from file " << optarg << endl;
             break;
 
          case 'n':
@@ -108,24 +108,24 @@
 
         case 'c':
             cov = !cov;
-            params.fnameAL= string(optarg);
+            params.fnameAL = string(optarg);
 
             pos = string(optarg).find(".");
             if (pos != string::npos)
                 params.fnameAL = string(optarg).substr(0, pos);
 
-            cout << "using -c covariates in file " << optarg << endl;
+            cout << "using -c with covariates from file " << optarg << endl;
             break;
 
         case 'o':
             bout = !bout;
-            params.fnameOutB= string(optarg);
+            params.fnameOutB = string(optarg);
 
             pos = string(optarg).find(".");
             if (pos != string::npos)
                 params.fnameOutB = string(optarg).substr(0, pos);
 
-            cout << "using -o as output file " << optarg << endl;
+            cout << "using -o with output file " << optarg << endl;
             break;
 
         case 't':
@@ -149,6 +149,7 @@
         printf ("non-option ARGV-elements: ");
         while (optind < argc)
             printf ("%s ", argv[optind++]);
+
         putchar ('\n');
     }
 
@@ -166,7 +167,6 @@
 
 int main( int argc, char *argv[] )
 {
-
     struct Settings params;
 
 //    cout << "Using Arguments: ";



More information about the Genabel-commits mailing list