def read_logodata(handle):
seqs = weblogolib.read_seq_data(handle,<EOL>alphabet=unambiguous_protein_alphabet)<EOL>ldata = weblogolib.LogoData.from_seqs(seqs)<EOL>letters = ldata.alphabet.letters()<EOL>counts = ldata.counts.array<EOL>logodata = []<EOL>for i, coldata, entropy, weight in zip(range(len(counts)), counts,<EOL>ldata.entropy, ldata.weight):<EOL><INDENT>cnts = dict((let, int(cnt))<EOL>for let, cnt in zip(letters, coldata))<EOL>logodata.append((i + <NUM_LIT:1>, cnts, entropy, weight))<EOL><DEDENT>return logodata<EOL>
Get weblogo data for a sequence alignment.

    Returns a list of tuples: (posn, letter_counts, entropy, weight)