Information analysis of an alignment

Information here is in the formal sense – maximum entropy minus the entropy at a position. This is fast to compute and is an indicator of the variability at a position.

Illustrated with a simple example

from cogent3 import load_aligned_seqs, make_aligned_seqs, make_seq

s1 = make_seq('TGATGTAAGGTAGTT', name='s1', moltype="dna")
s2 = make_seq('--CTGGAAGGGT---', name='s2', moltype="dna")

seqs = make_aligned_seqs(data=[s1, s2], array_align=False,
draw = seqs.information_plot(window=2, include_gap=True), height=400)