Skip to content

Commit

Permalink
fix: outlier pruning in clock-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
rneher committed Jul 12, 2024
1 parent 338f379 commit 800deec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion treetime/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,8 @@ def estimate_clock_model(params):
myTree.outliers.to_csv(basename + 'outliers.tsv', sep='\t')

if hasattr(myTree, 'outliers') and myTree.outliers is not None and params.prune_outliers:
for outlier in myTree.outliers:
for outlier in myTree.outliers.index:
print("removing ", outlier)
myTree.tree.prune(outlier)

if not params.keep_root:
Expand Down

0 comments on commit 800deec

Please sign in to comment.