Skip to content

Commit

Permalink
[MISC] automatic linting
Browse files Browse the repository at this point in the history
  • Loading branch information
seqan-actions committed Oct 16, 2023
1 parent ca37ca5 commit e5351a1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions include/hibf/layout/hierarchical_binning.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,17 @@ class hierarchical_binning
std::vector<std::vector<std::pair<size_t, size_t>>> & trace);

void backtrack_merged_bin(size_t trace_j,
size_t const next_j,
size_t const bin_id,
size_t & high_level_max_id,
size_t & high_level_max_size,
bool is_first_row = false);
size_t const next_j,
size_t const bin_id,
size_t & high_level_max_id,
size_t & high_level_max_size,
bool is_first_row = false);

void backtrack_split_bin(size_t trace_j,
size_t const number_of_bins,
size_t const bin_id,
size_t & high_level_max_id,
size_t & high_level_max_size);
size_t const number_of_bins,
size_t const bin_id,
size_t & high_level_max_id,
size_t & high_level_max_size);

//!\brief Backtracks the trace matrix and writes the resulting binning into the output file.
size_t backtracking(std::vector<std::vector<std::pair<size_t, size_t>>> const & trace);
Expand Down
14 changes: 7 additions & 7 deletions src/layout/hierarchical_binning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,18 +267,18 @@ void hierarchical_binning::backtrack_merged_bin(size_t trace_j,
}

Check warning on line 267 in src/layout/hierarchical_binning.cpp

View check run for this annotation

Codecov / codecov/patch

src/layout/hierarchical_binning.cpp#L267

Added line #L267 was not covered by tests

void hierarchical_binning::backtrack_split_bin(size_t trace_j,
size_t const number_of_bins,
size_t const bin_id,
size_t & high_level_max_id,
size_t & high_level_max_size)
size_t const number_of_bins,
size_t const bin_id,
size_t & high_level_max_id,
size_t & high_level_max_size)
{
size_t kmer_count = (*data->kmer_counts)[data->positions[trace_j]];
size_t const kmer_count_per_bin = (kmer_count + number_of_bins - 1) / number_of_bins; // round up

data->hibf_layout->user_bins.emplace_back(data->previous.bin_indices,
bin_id,
number_of_bins,
data->positions[trace_j]);
bin_id,
number_of_bins,
data->positions[trace_j]);

// std::cout << "split " << trace_j << " into " << number_of_bins << ": " << kmer_count_per_bin << std::endl;

Expand Down

0 comments on commit e5351a1

Please sign in to comment.