Skip to content

Commit

Permalink
Count files now have to be tab-separated
Browse files Browse the repository at this point in the history
  • Loading branch information
meiers committed Oct 12, 2018
1 parent 72e9c7b commit 16c65bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/iocounts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,13 @@ bool read_counts_gzip(TString const & f_in,

// split line
std::vector<std::string> fields;
boost::split(fields, line, boost::is_any_of("\t "));
boost::split(fields, line, boost::is_any_of("\t"));

// if not 8 fields, error!
if (fields.size() != 8) return 10;
if (fields.size() != 8) {
std::cerr << "[read_counts_gzip] Line contains != 8 fields: \"" << line << "\"" << std::endl;
return false;
}

std::string row_chr;
int32_t row_start;
Expand Down

0 comments on commit 16c65bd

Please sign in to comment.