def find_contig_distribution(contig_lengths_dict):
<EOL>contig_len_dist_dict = dict()<EOL>for file_name, contig_lengths in contig_lengths_dict.items():<EOL><INDENT>over_1000000 = <NUM_LIT:0><EOL>over_500000 = <NUM_LIT:0><EOL>over_100000 = <NUM_LIT:0><EOL>over_50000 = <NUM_LIT:0><EOL>over_10000 = <NUM_LIT:0><EOL>over_5000 = <NUM_LIT:0><EOL>other = <NUM_LIT:0><EOL>for contig_length in contig_lengths:<EOL><INDENT>if contig_length > <NUM_LIT>:<EOL><INDENT>over_1000000 += <NUM_LIT:1><EOL><DEDENT>elif contig_length > <NUM_LIT>:<EOL><INDENT>over_500000 += <NUM_LIT:1><EOL><DEDENT>elif contig_length > <NUM_LIT>:<EOL><INDENT>over_100000 += <NUM_LIT:1><EOL><DEDENT>elif contig_length > <NUM_LIT>:<EOL><INDENT>over_50000 += <NUM_LIT:1><EOL><DEDENT>elif contig_length > <NUM_LIT>:<EOL><INDENT>over_10000 += <NUM_LIT:1><EOL><DEDENT>elif contig_length > <NUM_LIT>:<EOL><INDENT>over_5000 += <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>other += <NUM_LIT:1><EOL><DEDENT><DEDENT>contig_len_dist_dict[file_name] = (over_1000000,<EOL>over_500000,<EOL>over_100000,<EOL>over_50000,<EOL>over_10000,<EOL>over_5000,<EOL>other)<EOL><DEDENT>return contig_len_dist_dict<EOL>
Determine the frequency of different contig size ranges for each strain
:param contig_lengths_dict:
:return: contig_len_dist_dict: dictionary of strain name: tuple of contig size range frequencies