Skip to content

Commit

Permalink
[prune] Fix some logging info
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Jul 22, 2019
1 parent 338201a commit 05229b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ func (r *Pruner) pruneCrossAllelicBipartiteMatching() {
}
total++
totalLinks += edge.nObservedLinks

}
log.Noticef("Cross-allelic pairs pruned: %s, prunedLinks: %s",
Percentage(pruned, total), Percentage(prunedLinks, totalLinks))
}

// isStrongEdgeInBipartiteMatching determines if the edge being considered is
Expand Down Expand Up @@ -184,7 +185,7 @@ func (r *Pruner) isStrongEdgeInBipartiteMatching(edge *ContigPair, aGroup Allele
// Solve the matching problem using Hungarian algorithm
solution := maxBipartiteMatchingWithWeights(S)
ans := solution[ti] == tj
fmt.Println(aGroup, bGroup, S, solution, ans)
fmt.Println(edge.at, edge.bt, aGroup, bGroup, S, solution, ans)
return ans
}

Expand Down

0 comments on commit 05229b7

Please sign in to comment.