Skip to content

Commit

Permalink
fix to pass unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glennhickey committed May 24, 2021
1 parent b420661 commit ed77640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deconstructor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ pair<vector<int>, bool> Deconstructor::choose_traversals(const string& sample_na
vector<int> allele_frequencies(*max_element(trav_to_allele.begin(), trav_to_allele.end()) + 1, 0);
for (auto trav : travs) {
// we always want to choose alt over ref when possible in sorting logic below, so
// don't count refs here
// cap ref frequency at 1
int allele = trav_to_allele.at(trav);
if (allele > 0) {
if (allele > 0 || allele_frequencies[allele] == 0) {
++allele_frequencies[allele];
}
}
Expand Down

1 comment on commit ed77640

@adamnovak
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vg CI tests complete for branch deconstruct. View the full report here.

16 tests passed, 0 tests failed and 0 tests skipped in 11768 seconds

Please sign in to comment.