Update ColorByClade.py

Changed to root on bacteria (Ba) and not prokaryotes (Ba, Za).... did not test
This commit is contained in:
Katzlab 2025-07-01 16:18:54 -04:00 committed by GitHub
parent 5486c4289b
commit aec7f6caf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,7 +151,7 @@ def reroot(tree):
return best_clade
#Get the biggest clade for each taxonomic group (stops once it finds one)
for taxon in [('Ba', 'Za'), ('Op'), ('Pl'), ('Am'), ('Ex'), ('Sr')]:
for taxon in [('Ba'), ('Za'), ('Op'), ('Pl'), ('Am'), ('Ex'), ('Sr')]:
clade = get_best_clade(taxon)
if len([leaf for leaf in clade if leaf.name[:2] in taxon]) > 3: