def _get_chromosome_dirs(input_directory):
    """Collect chromosome directories"""
    dirs = []
    for d in input_directory.iterdir():
        if not d.is_dir():
            continue
        # Just in case user re-runs and
        # does not delete output files
        elif d.name == 'logs':
            continue
        elif d.name == 'p_distance_output':
            continue
        else:
            dirs.append(d)
    return dirs