Swabs?

My doctor wants me to come on for swabs and physical. What are the swabs for? What should I expect during this test? Is it necessary?