Skip to content

Commit

Permalink
fix(region_map): correctly print "Aggregating"/"Averaging"
Browse files Browse the repository at this point in the history
  • Loading branch information
jamespeapen committed Jul 3, 2024
1 parent 6192839 commit b8f0fb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/region_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ Rcpp::DataFrame Cpp_region_map(
const int& nthreads = 1
) {

Rprintf("Aggregating %zu regions from %zu bedfiles\n", regions.size(), bedfiles.size());
std::string fun_label = fun == "aggregate" ? "Aggregating" : "Averaging";
Rprintf("%s %zu regions from %zu bedfiles\n", fun_label.c_str(), regions.size(), bedfiles.size());
ssize_t rowsize = bedfiles.size() * regions.size();
Rcpp::CharacterVector feature_col(rowsize);
Rcpp::CharacterVector cell(rowsize);
Expand Down

0 comments on commit b8f0fb1

Please sign in to comment.