The branch of biology that deals with the study of heredity and variation of genes in living organisms.