Skip to content

cmkobel/CompareM2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2,195 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CompareM2

GitHub Actions Workflow Status Bioconda downloads Docker Pulls Documentation Status Conda Version https://doi.org/10.1093/bioinformatics/btaf517

Note: Looking for the original CompareM (AAI and codon usage)? See github.com/donovan-h-parks/CompareM.

CompareM2 is a genomes-to-report pipeline for comparative analysis of bacterial and archaeal genomes. It takes genome assemblies β€” isolates or MAGs β€” and runs 30+ analysis tools, producing a portable HTML report with publication-ready graphics.

report document logo

Features

  • 30+ integrated analyses β€” quality control, annotation, functional annotation, phylogenetics, pan/core genomes, AMR profiling, metabolic modeling, and more. Full list.
  • Dynamic HTML report β€” collects central results into a single portable file with interpretable figures and text. Adapts to partial runs β€” only includes sections for completed analyses. See examples.
  • Assembly-agnostic β€” works strictly downstream of assembly and binning. Accepts genomes from any sequencing technology or source.
  • Scalable β€” runs on local workstations (recommended >= 64 GiB RAM) or HPC clusters (SLURM/PBS). Scales approximately linearly with input size thanks to Snakemake's parallel job scheduling.
  • Easy to install β€” single command via pixi or mamba. All dependencies are managed via conda environments or a pre-built Docker/Apptainer image.
  • Configurable β€” passthrough arguments forward any parameter to any underlying tool. Add NCBI reference genomes by accession.

Quick start

# Install
pixi global install -c conda-forge -c bioconda comparem2

# Run fast analyses on your genomes
comparem2 --config input_genomes="*.fna" --until fast

# Run the full pipeline
comparem2

See the documentation for installation options, usage details, and the full list of analyses.

Citation

Kobel C.M., Aho V.T.E., ØyΓ₯s O., NΓΈrskov-Lauritsen N., Woodcroft B.J., Pope P.B. CompareM2 is a genomes-to-report pipeline for comparing microbial genomes. Bioinformatics 41(9), btaf517 (2025). doi:10.1093/bioinformatics/btaf517

Links