The monitoring of pathogens by analysing their genetic sequences to identify variants, investigate transmission, and track changes over time.