Genetic analysis is the examination of genetic material to understand the inheritance, variation, and function of genes. It plays a crucial role in identifying how plants respond to threats by analyzing their genetic makeup and how it can affect their defense mechanisms against pests, diseases, and environmental stressors.