[Genabel-commits] r1734 - pkg/ProbABEL/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon May 19 21:27:32 CEST 2014


Author: lckarssen
Date: 2014-05-19 21:27:32 +0200 (Mon, 19 May 2014)
New Revision: 1734

Modified:
   pkg/ProbABEL/src/main_functions_dump.cpp
   pkg/ProbABEL/src/main_functions_dump.h
Log:
ProbABEL: Added some more consts to function call arguments.


Modified: pkg/ProbABEL/src/main_functions_dump.cpp
===================================================================
--- pkg/ProbABEL/src/main_functions_dump.cpp	2014-05-19 17:05:31 UTC (rev 1733)
+++ pkg/ProbABEL/src/main_functions_dump.cpp	2014-05-19 19:27:32 UTC (rev 1734)
@@ -3,8 +3,8 @@
  *
  *  Created on: Nov 27, 2013
  *      Author: mkooyman
-*
  *
+ *
  * Copyright (C) 2009--2014 Various members of the GenABEL team. See
  * the SVN commit logs for more details.
  *
@@ -41,6 +41,7 @@
 #include "invsigma.h"
 #include "command_line_settings.h"
 
+
 /**
  * Send a progress update (a percentage) to stdout so that the user
  * has a rough indication of the percentage of SNPs that has already
@@ -76,6 +77,7 @@
     std::cout << std::setprecision(6);
 }
 
+
 /**
  * Open an output file for each model when using probability data
  * (npgreds == 2). This function creates the _2df.out.txt etc. files.
@@ -109,6 +111,7 @@
     }
 }
 
+
 int create_phenotype(phedata& phd, const cmdvars& input_var)
 {
     phd.set_is_interaction_excluded(input_var.isIsInteractionExcluded());
@@ -171,7 +174,7 @@
  * \param phd Object with phenotype data
  */
 void create_start_of_header(std::vector<std::ofstream*>& outfile,
-        cmdvars& input_var, phedata& phd)
+                            const cmdvars& input_var, const phedata& phd)
 {
     for (unsigned int i = 0; i < outfile.size(); i++)
     {
@@ -225,7 +228,8 @@
  * \param interaction_cox are we using the Cox model with interaction?
  */
 void create_header(std::vector<std::ofstream*>& outfile,
-                   cmdvars& input_var, phedata& phd, int& interaction_cox)
+                   const cmdvars& input_var, const phedata& phd,
+                   const int& interaction_cox)
 {
     create_start_of_header(outfile, input_var, phd);
 
@@ -408,7 +412,7 @@
  * @return Start position of beta for this model
  */
 int get_start_position(const cmdvars& input_var, const int model,
-        const int number_of_rows_or_columns)
+                       const int number_of_rows_or_columns)
 {
     int start_pos;
     if (!input_var.getAllcov() &&

Modified: pkg/ProbABEL/src/main_functions_dump.h
===================================================================
--- pkg/ProbABEL/src/main_functions_dump.h	2014-05-19 17:05:31 UTC (rev 1733)
+++ pkg/ProbABEL/src/main_functions_dump.h	2014-05-19 19:27:32 UTC (rev 1734)
@@ -41,7 +41,7 @@
 int create_phenotype(phedata& phd, const cmdvars& input_var);
 
 void create_start_of_header(std::vector<std::ofstream*>& outfile,
-                            cmdvars& input_var, phedata& phd);
+                            const cmdvars& input_var, const phedata& phd);
 
 void write_mlinfo(const std::vector<std::ofstream*>& outfile,
                   const unsigned int file, const mlinfo& mli,
@@ -52,8 +52,9 @@
                            const std::string& outfilename_str);
 
 void create_header(std::vector<std::ofstream*>& outfile,
-                   cmdvars& input_var, phedata& phd, int& interaction_cox);
+                   const cmdvars& input_var, const phedata& phd,
+                   const int& interaction_cox);
 
 int get_start_position(const cmdvars& input_var, const int model,
-        const int number_of_rows_or_columns);
+                       const int number_of_rows_or_columns);
 #endif /* MAIN_FUNCTIONS_DUMP_H_ */



More information about the Genabel-commits mailing list