14Sequencing of bacterial genomes using Illumina technology has become such a standard 15 procedure that often data are generated faster than can be conveniently analyzed. We created 16 a new series of pipelines called Bactopia, built using Nextflow workflow software, to provide 17 efficient comparative genomic analyses for bacterial species or genera. Bactopia consists of a 18 dataset setup step (Bactopia Datasets; BaDs) where a series of customizable datasets are 19 created for the species of interest; the Bactopia Analysis Pipeline (BaAP), which performs 20 quality control, genome assembly and several other functions based on the available datasets 21 and outputs the processed data to a structured directory format; and a series of Bactopia Tools 22 (BaTs) that perform specific post-processing on some or all of the processed data. BaTs include 23 pan-genome analysis, computing average nucleotide identity between samples, extracting and 24 profiling the 16S genes and taxonomic classification using highly conserved genes. It is 25 expected that the number of BaTs will increase to fill specific applications in the future. As a 26 demonstration, we performed an analysis of 1,664 public Lactobacillus genomes, focusing on L. 27 crispatus, a species that is a common part of the human vaginal microbiome. Bactopia is an 28 open source system that can scale from projects as small as one bacterial genome to 29 thousands that allows for great flexibility in choosing comparison datasets and options for 30 downstream analysis. Bactopia code can be accessed at 31 https://www.github.com/bactopia/bactopia. 32 33 laboratories. This structure also simplifies the user experience. In Bactopia, complex multi-62 genome analysis can be run in a small number of commands. However, there are myriad 63 options for fine-tuning datasets used for analysis and the functions of the system. The 64 underlying Nextflow structure ensures reproducibility. To illustrate the functionality of the system 65 we performed a Bactopia analysis of 1,664 public genome projects of the Lactobacillus genus, 66 an important component of the microbiome of humans and animals. 67 68 Design and implementation 69