def check_resolution_consistency(args):
    """
    Ensure that matrix_sizes and qc_window_size are subsets of window_sizes.
    """
    all_window_sizes = list(args.window_sizes)
    all_window_sizes.extend(args.matrix_sizes)
    if args.qc_window_size is not None:
        all_window_sizes.append(args.qc_window_size)
    args.window_sizes = sorted(list(set(all_window_sizes)))
