Antigens are also used in various diagnostic tests to detect infections and diseases. For instance, rapid strep tests use antigens to identify Streptococcus bacteria in throat swabs. These tests help pediatricians quickly diagnose and treat infections in children.