Skip to content

Commit

Permalink
Reports the number of clades with credibility 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rambaut committed Nov 4, 2024
1 parent 6d101cf commit d6d2054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dr/app/tools/newtreeannotator/CladeSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public int getTopCladeCredibility(Tree tree, double threshold) {
traverseTree(tree, new CladeAction() {
@Override
public void actOnClade(Clade clade, Tree tree, NodeRef node) {
if (clade.getTaxon() == null && clade.getCredibility() > threshold) {
if (clade.getTaxon() == null && clade.getCredibility() >= threshold) {
minCladeCredibility[0] += 1;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/dr/app/tools/newtreeannotator/TreeAnnotator.java
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ private Tree getMCCTree(int burnin, CladeSystem cladeSystem, String inputFileNam
progressStream.println("Best tree's log clade credibility: " + String.format("%.4f", bestScore));
progressStream.println("Lowest individual clade credibility: " + String.format("%.4f", cladeSystem.getMinimumCladeCredibility(bestTree)));
progressStream.println("Mean individual clade credibility: " + String.format("%.4f", cladeSystem.getMeanCladeCredibility(bestTree)));
progressStream.println("Number of clades with credibility 1.0: " + cladeSystem.getTopCladeCredibility(bestTree, 1.0));
progressStream.println("Number of clades with credibility > 0.95: " + cladeSystem.getTopCladeCredibility(bestTree, 0.95));
progressStream.println("Number of clades with credibility > 0.5: " + cladeSystem.getTopCladeCredibility(bestTree, 0.5));
progressStream.println();
Expand Down

0 comments on commit d6d2054

Please sign in to comment.