Genetic determination of antibody specificity