def METHOD_NAME(counts, filename, window_size=31):
    window_counts = defaultdict(dict)  # {(seed, consensus): {mid_pos: (agree, disagree)}}
    for names, agreement_counts in counts.items():
        for mid_pos in agreement_counts.keys():
            hit_count = 0
            window_start = mid_pos - window_size/2
            window_end = window_start + window_size
            agree_sum = disagree_sum = 0
            for pos in range(window_start, window_end):
                agree_count, disagree_count = agreement_counts.get(pos,
                                                                   (None, None))
                if agree_count is not None:
                    agree_sum += agree_count
                    disagree_sum += disagree_count
                    hit_count += 1
            if hit_count == window_size:
                window_counts[names][mid_pos] = (agree_sum/hit_count,
                                                 disagree_sum/hit_count)
    _fig, axes = plt.subplots(nrows=2, ncols=2)
    for axis_index, names in enumerate(sorted(window_counts.keys())):
        axis = axes[axis_index % 2][axis_index / 2]
        seed_name, consensus_name = names