def _expand(variant, nts=False):
    """Expand Variant field into list for iso_5p, iso_3p, iso_add3p, iso_snv"""
    list_variant = []
    isomir = {}
    snp_var = []
    for v in variant.split(','):
        if v.find(':') > 0:
            isomir[v.split(':')[0]] = v.split(':')[1]
        elif v.find('snv') > 0:
            snp_var.append(1)
    if 'iso_5p' in isomir:
        list_variant.append(isomir['iso_5p'])
    else:
        list_variant.append(0)
    if 'iso_3p' in isomir:
        list_variant.append(isomir['iso_3p'])
    else:
        list_variant.append(0)
    if 'iso_add3p' in isomir:
        list_variant.append(isomir['iso_add3p'])
    else:
        list_variant.append(0)
    if nts:
        if 'iso_snv' in isomir:
            list_variant.append(isomir['iso_snv'])
        else:
            list_variant.append(0)
    else:
        snp = sum(snp_var)
        list_variant.append(snp)
    return list(map(str, list_variant))
