get_beta function

Extract beta and p-values of queried variant