def _profile_to_probs(profile: list, total_genomes: int) -> list:
    """
    Convert a profile (with counts) to a profile of probabilities
    """
    result = []
    for bases in profile:
        result.append([float(bases[i]) / float(total_genomes) for i in range(4)])
    return result