import re


def get_dp_and_i(info):
    """
    Returns the dp and dp4 coverage attributes.
    :param info: string
        the info (attribute) string in a vcf file.
    :return dp: string
        coverage defined by DP
    :return dp4: string
        comma separated coverage defined by DP4
    """
    regex = 'DP\=(\d+)\;.*DP4\=([\d\,]+)'
    dp, i = re.findall(regex, info)[0]
    return dp, i