def get_kmer_fraction(row):
    """Calculate the percentage frequency of a given position

    Args:
        row: BioHansel k-mer frequence pandas df row
    Returns:
        - float of percentage abundance
    """
    total_freq = row.total_refposition_kmer_frequency
    return row.freq / total_freq if total_freq > 0 else 0.0