Semen collection is typically done through masturbation, and the sample is collected in a sterile container. It is important to follow specific guidelines to ensure the sample's integrity. For instance, patients are usually advised to abstain from ejaculation for at least 2-5 days before the test to ensure an adequate sample. The sample should be kept at body temperature and delivered to the laboratory within an hour of collection.