From 82a7aff0330a755382b04ce4cc541488a23b0d44 Mon Sep 17 00:00:00 2001 From: hiraksarkar Date: Tue, 12 Mar 2019 22:55:41 -0400 Subject: [PATCH] modifying the 10X whitelist flag --- include/MinnowUtil.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/MinnowUtil.hpp b/include/MinnowUtil.hpp index a91af26..6b23af9 100644 --- a/include/MinnowUtil.hpp +++ b/include/MinnowUtil.hpp @@ -10,6 +10,8 @@ #include #include #include + +#include #include "MinnowFS.hpp" #include "string_view.hpp" @@ -210,8 +212,15 @@ namespace util{ std::vector lines_to_select(indexArray.begin(), indexArray.begin() + numCells ) ; std::sort(lines_to_select.begin(), lines_to_select.end()) ; - - std::string whitelist_filename("../data/737K-august-2016.txt") ; + + std::string file_path = __FILE__; + std::string dir_path = file_path.substr(0, file_path.rfind("/")); + std::string dir_path_root = dir_path.substr(0, dir_path.rfind("/")); + std::string whitelist_filename = dir_path_root + "/data/737K-august-2016.txt" ; + + std::cerr << "10X whitelist file " << whitelist_filename << "\n"; + + //std::string whitelist_filename("/mnt/scratch1/hirak/minnow/data/737K-august-2016.txt") ; std::string line; if(! util::fs::FileExists(whitelist_filename.c_str())){