Skip to content

Commit

Permalink
modifying the 10X whitelist flag
Browse files Browse the repository at this point in the history
  • Loading branch information
hiraksarkar committed Mar 13, 2019
1 parent bb1a80b commit 82a7aff
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions include/MinnowUtil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <vector>
#include <fstream>
#include <sstream>

#include <unistd.h>
#include "MinnowFS.hpp"

#include "string_view.hpp"
Expand Down Expand Up @@ -210,8 +212,15 @@ namespace util{

std::vector<int> 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())){
Expand Down

0 comments on commit 82a7aff

Please sign in to comment.