about summary refs log tree commit diff
path: root/src/gemma_io.cpp
diff options
context:
space:
mode:
authorPjotr Prins2025-12-01 13:24:32 +0100
committerPjotr Prins2025-12-01 13:24:32 +0100
commita31832901f66735433e8fcdbae51627b0a26fa0c (patch)
tree3702cc4466324d234ec87ab9486f83c6dd294bf5 /src/gemma_io.cpp
parent9091c780b9816fba987287ece703ec2317d3cc2f (diff)
downloadpangemma-a31832901f66735433e8fcdbae51627b0a26fa0c.tar.gz
Set up lmdb reading of geno file again
Diffstat (limited to 'src/gemma_io.cpp')
-rw-r--r--src/gemma_io.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gemma_io.cpp b/src/gemma_io.cpp
index cfa92d1..959e1f5 100644
--- a/src/gemma_io.cpp
+++ b/src/gemma_io.cpp
@@ -406,13 +406,14 @@ bool ReadFile_pheno(const string &file_pheno,
     return false;
   }
 
-  string line;
-  char *ch_ptr;
-
-  string id;
+  // string id;
   double p;
 
   vector<double> pheno_row;
+
+  string line;
+  char *ch_ptr;
+
   vector<int> indicator_pheno_row;
 
   size_t p_max = *max_element(p_column.begin(), p_column.end());
@@ -1516,7 +1517,7 @@ gsl_matrix *mdb_calc_kin(const string file_geno, bool is_loco, const int k_mode)
 
   env.set_mapsize(1UL * 1024UL * 1024UL * 1024UL * 1024UL); /* 10 GiB */
   env.set_max_dbs(10);
-  env.open("example/mouse_hs1940.geno.mdb", MDB_RDONLY | MDB_NOSUBDIR, 0664);
+  env.open(file_geno.c_str(), MDB_RDONLY | MDB_NOSUBDIR, 0664);
 
   size_t ni_total = 0, num_markers = 0;
   {