The study of how genes are inherited and expressed, and how genetic variations can influence behavior and other traits.