Skip to content

Commit 436037b

Browse files
fixing conflicts in xcounts.cpp when merging from master
2 parents fc507c1 + 7d5d684 commit 436037b

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/analysis/pmd.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,8 +1064,7 @@ binsize_selection(const size_t resolution, const size_t min_bin_sz,
10641064
if (frac_passed < min_frac_passed)
10651065
bin_size += resolution;
10661066
}
1067-
return frac_passed <= num_lim<double>::min() ?
1068-
num_lim<size_t>::max() : bin_size;
1067+
return frac_passed < min_frac_passed ? num_lim<size_t>::max() : bin_size;
10691068
}
10701069

10711070

src/common/counts_header.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ write_counts_header_from_chrom_sizes(const std::vector<std::string> &chrom_names
3131
bamxx::bgzf_file &out);
3232

3333
void
34-
write_counts_header_from_file(const std::string &header_file,
34+
write_counts_header_from_file(const std::string &header_file,
3535
bamxx::bgzf_file &out);
3636

3737
// returns -1 on failure, 0 on success

src/utils/xcounts.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* xcounts: reformat counts so they only give the m and u counts in a
2-
* wig format
2+
* dynamic step wig format
33
*
44
* Copyright (C) 2023 Andrew D. Smith
55
*
@@ -148,7 +148,6 @@ main_xcounts(int argc, const char **argv) {
148148
if (!out) throw dnmt_error("error opening output file: " + outfile);
149149

150150
if (n_threads > 1) {
151-
// ADS: something breaks when we use the thread for the input
152151
if (in.is_bgzf())
153152
tpool.set_io(in);
154153
tpool.set_io(out);

0 commit comments

Comments
 (0)