After the sample is collected, it is sent to a laboratory for analysis. The lab uses various techniques to identify the presence of pathogens. For bacterial infections, the sample is often cultured in a medium that promotes bacterial growth. For viral infections, molecular techniques such as PCR (Polymerase Chain Reaction) may be used.