def count(arrays, cn):
    """
    Used in conjuction with `get_vals`. 
    Counts the proportions of all_wt, all_mut,
    or mixed arrays in a given set of `data`,
    up to a copy number of `cn`.
    """
    all_wt, all_mut, mixed = 0, 0, 0
    for array in arrays:
        if len(array) != cn: continue
        # homogenous WT
        if all([i == 0 for i in array]): all_wt += 1 
        # homogenous H47R
        elif all([i == 1 for i in array]): all_mut += 1
        # "mixed" -- requires array to be longer than 1 copy
        elif len(set(array)) > 1 and all([i in (0, 1) for i in array]):
            mixed += 1
    return all_wt, mixed, all_mut