def max_insertion(seqs, gene, domain):
seqs = [i[<NUM_LIT:2>] for i in list(seqs.values()) if i[<NUM_LIT:2>] != [] and i[<NUM_LIT:0>] == gene and i[<NUM_LIT:1>] == domain]<EOL>lengths = []<EOL>for seq in seqs:<EOL><INDENT>for ins in seq:<EOL><INDENT>lengths.append(int(ins[<NUM_LIT:2>]))<EOL><DEDENT><DEDENT>if lengths == []:<EOL><INDENT>return <NUM_LIT:100> <EOL><DEDENT>return max(lengths)<EOL>
length of largest insertion