Small fix to ColorByClade_v2.0.py

This commit is contained in:
Auden Cote-L'Heureux 2023-08-22 10:00:11 -04:00 committed by GitHub
parent 59f82e826c
commit 13af646e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]] + ']')