study_to_variant function

Map a study id to a variant id