def calc_pident_ignore_gaps(a, b):
m = <NUM_LIT:0> <EOL>mm = <NUM_LIT:0> <EOL>for A, B in zip(list(a), list(b)):<EOL><INDENT>if A == '<STR_LIT:->' or A == '<STR_LIT:.>' or B == '<STR_LIT:->' or B == '<STR_LIT:.>':<EOL><INDENT>continue<EOL><DEDENT>if A == B:<EOL><INDENT>m += <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>mm += <NUM_LIT:1><EOL><DEDENT><DEDENT>try:<EOL><INDENT>return float(float(m)/float((m + mm))) * <NUM_LIT:100><EOL><DEDENT>except:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>
calculate percent identity