Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print treetime version #552

Merged
merged 1 commit into from
May 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion augur/ancestral.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def ancestral_sequence_inference(tree=None, aln=None, ref=None, infer_gtr=True,
treetime.TreeAnc instance
"""

from treetime import TreeAnc
from treetime import TreeAnc, version as treetime_version
print(f"augur ancestral is using TreeTime version {treetime_version}")

tt = TreeAnc(tree=tree, aln=aln, ref=ref, gtr='JC69',
fill_overhangs=fill_overhangs, verbose=1)

Expand Down
2 changes: 2 additions & 0 deletions augur/refine.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ def run(args):
else:
aln = args.alignment

from treetime import version as treetime_version
print(f"augur refine is using TreeTime version {treetime_version}")

# if not specified, construct default output file name with suffix _tt.nwk
if args.output_tree:
Expand Down
4 changes: 4 additions & 0 deletions augur/traits.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ def run(args):
mugration_states = defaultdict(dict)
models = defaultdict(dict)
out_prefix = '.'.join(args.tree.split('.')[:-1])

from treetime import version as treetime_version
print(f"augur traits is using TreeTime version {treetime_version}")

for column in args.columns:
T, gtr, alphabet = mugration_inference(tree=tree_fname, seq_meta=traits,
field=column, confidence=args.confidence,
Expand Down