The doctor will perform a nasal or throat culture to check for the Bordetella pertussis bacteria. The germs can be detected with a quick swab of the region where your nose and throat connect.