Skip to content

Commit

Permalink
fixing conflicts in xcounts.cpp when merging from master
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidsmith committed Jan 9, 2024
2 parents fc507c1 + 7d5d684 commit 436037b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/analysis/pmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1064,8 +1064,7 @@ binsize_selection(const size_t resolution, const size_t min_bin_sz,
if (frac_passed < min_frac_passed)
bin_size += resolution;
}
return frac_passed <= num_lim<double>::min() ?
num_lim<size_t>::max() : bin_size;
return frac_passed < min_frac_passed ? num_lim<size_t>::max() : bin_size;
}


Expand Down
2 changes: 1 addition & 1 deletion src/common/counts_header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ write_counts_header_from_chrom_sizes(const std::vector<std::string> &chrom_names
bamxx::bgzf_file &out);

void
write_counts_header_from_file(const std::string &header_file,
write_counts_header_from_file(const std::string &header_file,
bamxx::bgzf_file &out);

// returns -1 on failure, 0 on success
Expand Down
3 changes: 1 addition & 2 deletions src/utils/xcounts.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* xcounts: reformat counts so they only give the m and u counts in a
* wig format
* dynamic step wig format
*
* Copyright (C) 2023 Andrew D. Smith
*
Expand Down Expand Up @@ -148,7 +148,6 @@ main_xcounts(int argc, const char **argv) {
if (!out) throw dnmt_error("error opening output file: " + outfile);

if (n_threads > 1) {
// ADS: something breaks when we use the thread for the input
if (in.is_bgzf())
tpool.set_io(in);
tpool.set_io(out);
Expand Down

0 comments on commit 436037b

Please sign in to comment.