def get_protein_score(average_coverage, coverage):
    """Returns relative coverage

    Args:
        average_coverage (float): average read coverage in the sample
        coverage (float): read coverage of contig

    """
    try:
        result = coverage / average_coverage
    except ZeroDivisionError:
        result = coverage
    return result