aboutsummaryrefslogtreecommitdiff
path: root/src/lmm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lmm.h')
-rw-r--r--src/lmm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lmm.h b/src/lmm.h
index dd937a6..fbdf4d1 100644
--- a/src/lmm.h
+++ b/src/lmm.h
@@ -24,6 +24,7 @@
#include "io.h"
#include "param.h"
#include <functional>
+#include <tuple>
using namespace std;
@@ -41,6 +42,8 @@ public:
size_t e_mode;
};
+typedef std::tuple<string,std::vector<double> > SnpNameValues;
+
class LMM {
public:
@@ -90,7 +93,7 @@ public:
void AnalyzeGene(const gsl_matrix *U, const gsl_vector *eval,
const gsl_matrix *UtW, const gsl_vector *Utx,
const gsl_matrix *W, const gsl_vector *x);
- void Analyze(std::function< string(size_t) >& fetch_line,
+ void Analyze(std::function< SnpNameValues(size_t) >& fetch_snp,
const gsl_matrix *U, const gsl_vector *eval,
const gsl_matrix *UtW, const gsl_vector *Uty,
const gsl_matrix *W, const gsl_vector *y,