<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;">Dear all,</div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"><br></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;">For a phylogenetic tree in newick format, for example</div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"><br></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"><span><pre>(mm10:0.170506,
(hg38:0.114771,
(tupChi1:0.187178,
galVar1:0.105148):0.011794):0.170506);
</pre></span><div><br></div><div>is there a way in Biopython to reorder the tree (and save the tree in newick format)?</div><div>For example, with hg38 on top:</div><div><br></div><div><span>((hg38:0.114771,(tupChi1:0.187178,galVar1:0.105148):0.011794):0.170506,mm10:0.170506);<br><br></span><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div>-Michiel<br></div></div></div></div></body></html>