The study of heredity and the genetic factors that influence various aspects of anatomy and physiology.