I have a fasta file of aligned sequences that I want to create a phylogenetic tree for. I can create a normal branched tree like this... Normal branched phylogenetic tree
but would like to convert it so it looks something like this...Circular phylogenetic tree
The code I have used so far is below (the out_file is a filepath to the aligned fasta file)
from Bio import AlignIO
from Bio import Phylo
from Bio.Phylo.TreeConstruction import DistanceTreeConstructor
import matplotlib
import matplotlib.pyplot as plt
align = AlignIO.read(out_file, "fasta")
# print(align)
from Bio.Phylo.TreeConstruction import DistanceCalculator
calculator = DistanceCalculator('identity')
dm = calculator.get_distance(align)
constructor = DistanceTreeConstructor()
tree = constructor.upgma(dm)
Phylo.draw_ascii(tree)