mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2026-02-10 20:40:25 +08:00
Small fix to ColorByClade_v2.0.py
This commit is contained in:
parent
59f82e826c
commit
13af646e65
@ -224,7 +224,7 @@ def color(file, args):
|
||||
keys = sorted([key for key in colors if leaf.name.startswith(key)], key = lambda x : -len(x))
|
||||
|
||||
if len(keys) > 0:
|
||||
if '[&!color=' in keys[0]:
|
||||
if '[&!color=' in colors[keys[0]]:
|
||||
leaf_colors.append(leaf.name + colors[keys[0]])
|
||||
else:
|
||||
leaf_colors.append(leaf.name + '[&!color=' + colors[keys[0]] + ']')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user