wrappers: don't export dates of branches labeled
@@ -185,8 +185,14 @@ def export_sequences_and_tree(tt, basename, is_vcf=False, zero_based=False,
for n in tt.tree.find_clades():
if timetree:
if confidence:
+ if n.bad_branch:
+ fh_dates.write('%s\t--\t--\t--\t--\n'%(n.name))
+ else:
conf = tt.get_max_posterior_region(n, fraction=0.9)
fh_dates.write('%s\t%s\t%f\t%f\t%f\n'%(n.name, n.date, n.numdate,conf[0], conf[1]))
+ else:
+ if n.bad_branch:
+ fh_dates.write('%s\t--\t--\n'%(n.name))
else:
fh_dates.write('%s\t%s\t%f\n'%(n.name, n.date, n.numdate))
