DNA diff of phage genomes

Step 1: Install MUMmer4

Install using Conda

conda create -n mummer -c bioconda mummer4 -y
conda activate mummer

Step 2: Prepare Genome Files

You will need two genome FASTA files:

  • phageA.fna
  • phageB.fna

Step 3: Run DNAdiff

Run DNAdiff with a prefix for the output files:

dnadiff -p phageA_vs_phageB phageA.fna phageB.fna

This will generate several output files, including a summary report.


Step 4: View the Summary Report

The main results are in the *.report file:

cat phageA_vs_phageB.report

A number of output files are created. These include :

FilePurpose
phageA_vs_phageB.reportMain summary file – identity, coverage, SNPs, indels
phageA_vs_phageB.deltaWhole-genome alignment coordinates
phageA_vs_phageB.snpsList of individual SNPs and small indels
phageA_vs_phageB.1coordsAlignment coordinates (reference → query)
phageA_vs_phageB.mcoordsMerged alignment coordinates
phageA_vs_phageB.qdiffRegions unique to the query genome
phageA_vs_phageB.rdiffRegions unique to the reference genome
phageA_vs_phageB.unrefUnaligned reference regions
phageA_vs_phageB.unqryUnaligned query regions

dnadiff allows the rapid comparison of phage genomes (< 2 sec) to identify SNPs/INDELS. It works best on closely related phages.