From 2add397847701d8f939eab55bacddb54fdb8c641 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 6 Oct 2017 08:41:17 +0000 Subject: LMM: lifted out file access --- src/lmm.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/lmm.h') diff --git a/src/lmm.h b/src/lmm.h index 72ce523..bd303b0 100644 --- a/src/lmm.h +++ b/src/lmm.h @@ -23,6 +23,7 @@ #include "gsl/gsl_vector.h" #include "io.h" #include "param.h" +#include using namespace std; @@ -89,13 +90,18 @@ 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 AnalyzePlink(const gsl_matrix *U, const gsl_vector *eval, - const gsl_matrix *UtW, const gsl_vector *Uty, - const gsl_matrix *W, const gsl_vector *y); + void Analyze(std::function< string(void) >& fetch_line, + const gsl_matrix *U, const gsl_vector *eval, + const gsl_matrix *UtW, const gsl_vector *Uty, + const gsl_matrix *W, const gsl_vector *y, + const set gwasnps); void AnalyzeBimbam(const gsl_matrix *U, const gsl_vector *eval, const gsl_matrix *UtW, const gsl_vector *Uty, const gsl_matrix *W, const gsl_vector *y, const set gwasnps); + void AnalyzePlink(const gsl_matrix *U, const gsl_vector *eval, + const gsl_matrix *UtW, const gsl_vector *Uty, + const gsl_matrix *W, const gsl_vector *y); void AnalyzePlinkGXE(const gsl_matrix *U, const gsl_vector *eval, const gsl_matrix *UtW, const gsl_vector *Uty, const gsl_matrix *W, const gsl_vector *y, -- cgit v1.2.3