about summary refs log tree commit diff
path: root/src/lmm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lmm.cpp')
-rw-r--r--src/lmm.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lmm.cpp b/src/lmm.cpp
index 66b8e37..44f2a55 100644
--- a/src/lmm.cpp
+++ b/src/lmm.cpp
@@ -2100,10 +2100,10 @@ void LMM::mdb_analyze(std::function< SnpNameValues2(size_t) >& fetch_snp,
 
   auto sumstats = [&] (SUMSTAT2 st) {
     outfile << scientific << setprecision(6);
-    auto tup = st.markerinfo;
-    auto name = get<0>(tup);
-    auto chr = get<1>(tup);
-    auto pos = get<2>(tup);
+    auto m = st.markerinfo;
+    auto name = m.name;
+    auto chr  = m.chr;
+    auto pos  = m.pos;
 
     outfile << chr << "\t";
     outfile << name << "\t";
@@ -2255,7 +2255,7 @@ void LMM::mdb_calc_gwa(const gsl_matrix *U, const gsl_vector *eval,
       size_t n_miss = 0; // count NAs: FIXME
       double maf = compute_maf(ni_total, ni_test, n_miss, gs.data());
 
-      markerinfo = make_tuple(marker,chr,pos,num);
+      markerinfo = MarkerChrPos { .name=marker,.chr=chr,.pos=pos,.line_no=num };
 
       // cout << "!!!!" << size << marker << ": af" << maf << " " << gs[0] << "," << gs[1] << "," << gs[2] << "," << gs[3] << endl;
     }