from Bio.Align import AlignInfo summary_align = AlignInfo.SummaryInfo(alignment) consensus = summary_align.dumb_c