Direct Examination and Techniques: Direct examination of specimens reveals gross pathology. Microscopy may identify microorganisms. Immunofluorescence, immuno-peroxidase staining, and other immunoassays may detect specific microbial antigens. Genetic probes identify genus- or species-specific DNA or RNA sequences.
Culture: Isolation of infectious agents frequently requires specialized media. Nonselective (noninhibitory) media permit the growth of many microorganisms. Selective media contain inhibitory substances that permit the isolation of specific types of microorganisms.
Microbial Identification: Colony and cellular morphology may permit preliminary identification. Growth characteristics under various conditions, utilization of carbohydrates and other substrates, enzymatic activity, immunoassays, and genetic probes are also used.
Serodiagnosis: A high or rising titer of specific IgG antibodies or the presence of specific IgM antibodies may suggest or confirm a diagnosis.
Antimicrobial Susceptibility: Microorganisms, particularly bacteria, are tested in vitro to determine whether they are susceptible to antimicrobial agents.
PCR can reveal the presence of your genetic target (virulence gene) in the bacteria. You need to use primers that are specific to your gene of interest.
You can use diagnostic tools such as PCR or serodiagnoses. As input to your question which is the possible use of the virulence gene in the production of vaccine, you can refer to the following publication: