This pipeline's purpose is to use Whole Genome Sequencing (WGS) data in order to detect genomic inversions in the genomes of bacteria and calculate their prevalence in the population. It is a supplementary material to the paper "Systematic Identification and Quantification of Phase Variation in Commensal and Pathogenic E.coli" (Goldberg, A. et al., Genome Medicine 2014).