Skip to content

Commit

Permalink
[refine] enable divergence unit scaling without timetree
Browse files Browse the repository at this point in the history
  • Loading branch information
rneher committed Jul 22, 2020
1 parent 4c474a9 commit e9b3eec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion augur/refine.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ def run(args):
elif args.divergence_units=='mutations':
L = tt.seq_len
for node in node_data['nodes']:
node_data['nodes'][node]['mutation_length'] *= L
if args.timetree:
node_data['nodes'][node]['mutation_length'] *= L
node_data['nodes'][node]['branch_length'] *= L
else:
print("ERROR: divergence unit",args.divergence_units,"not supported!")
Expand Down

0 comments on commit e9b3eec

Please sign in to comment.