def normalize_bit(A, B, bit, id2desc):
Amax, Bmax = id2desc[A][-<NUM_LIT:1>], id2desc[B][-<NUM_LIT:1>]<EOL>norm_factor = float(numpy.average([Amax, Bmax]))<EOL>normalized = bit / norm_factor<EOL>return normalized<EOL>
normalize the bit score:
normalization factor = average max bit score for the two ORFs
normalized = bit score / normalization factor