Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
subwaystation committed Apr 9, 2020
1 parent db37437 commit 1064734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithms/bin_path_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ void bin_path_info(const PathHandleGraph& graph,
bins[curr_bin].mean_pos += path_pos++;
nucleotide_count += 1;
if((bins[curr_bin].ranges.size() == 0) ||
((nucleotide_count - bins[curr_bin].ranges[bins[curr_bin].ranges.size() - 1].second) > 1)){
((nucleotide_count - bins[curr_bin].ranges.back().second) > 1)){
bins[curr_bin].ranges.push_back(std::make_pair(nucleotide_count, nucleotide_count));
// bins[curr_bin].first_nucleotide = nucleotide_count;
} else {
bins[curr_bin].ranges[bins[curr_bin].ranges.size() - 1].second = nucleotide_count;
bins[curr_bin].ranges.back().second = nucleotide_count;
}
last_bin = curr_bin;
last_is_rev = is_rev;
Expand Down

0 comments on commit 1064734

Please sign in to comment.