variant_to_association function

Map a variant id to an association id