Published September 26, 2026
| Version v0.3.0
Software
Open
BACoN: Bait, Assemble and Compare Nanopore reads
Authors/Creators
Description
A rewrite. Every program was reconsidered: those no longer maintained were replaced after comparing the candidates on simulated data of known truth and on real data (Validation).
Changed
- Installable package with a
baconcommand (pip install .);python bacon.pystill works. BACoN itself uses the Python standard library only (pandas, psutil, pysam and ete3 are no longer needed). - The default assembly is now templated: the consensus of the reads aligned to the reference, with
samtools consensus(-a samtools). It replaces Rebaler and was the most accurate method in every test. Flye remains available (-a flye), and myloasm is added (-a myloasm). - The default SNP method is now SKA2 (
--snp-method ska), reference-free, exact on all simulated data and counting a SNP in an inverted repeat once.--ska-min-freqbelow 1 gives pan-genome SNPs, the role of kSNP3 in BACoN 0.1. Parsnp remains (--snp-method parsnp), now with-c, which turns off its filter that drops divergent genomes. - Output folders:
1_extracted,2_filtered,3_assembled,4_compared/<method>/(there is no trimming step any more). Each comparison method writes to its own folder. - Resuming is automatic and parameter-aware: finished steps are skipped when their parameters and inputs did
not change; changing a parameter reruns that step and the following ones; failed samples are retried;
adding samples processes only them (and the comparison).
--redo STEPforces a step. Thedone_*files are replaced by.checkpoints/. - Trees are midpoint-rooted and drawn as SVG by BACoN (
tree.svg), without Qt. - Sample names are the file names without their extension (
_passis no longer removed); a folder of files (such as MinKNOW'sbarcode01/) is one sample. --kmer-sizedefaults to 31, the largest value BBDuk accepts (99 made BBDuk fail).
Added
summary.tsv: reads and bases at each step, baited share, depth, assembly statistics, circular contigs, status and notes (low depth, unexpected length,Nbases, failures) for every sample.snp_distances.tsv: pairwise SNP distances.run_info.json: command, settings, versions of every program, samples and results;bacon.log; per-sample logs of every program inlogs/.--add-genomes: finished genomes (such as published plastomes) included in the comparison.--sample-sheet(several files per sample),--tree iqtree,--read-type,--template-gaps,--target-depth,--keep-percent,--min-read-length,--debug.- A failed sample no longer stops the run; every program's exit status is checked.
- Tests (pytest, stub programs), continuous integration, a simulated example with known SNPs
(
example/), a validation suite (validation/), a bioconda recipe, and a wiki maintained indocs/wiki/.
Removed
- Porechop (unmaintained; reads are trimmed by the basecaller), Shasta, Rebaler, Snippy (cannot be installed
with current assemblers), PhaME (its version check rejects samtools 1.10 to 1.29), RAxML and the
requirements.txtenvironment. See Methods.
Fixed
- With minimap2 baiting, the BAM files of other samples processed in parallel could be deleted before their reads were extracted.
--threadsand--parallelwere not checked (the bounds test could never be true).- Snippy ran with a changed working directory shared by parallel threads.
- PhaME added the reference to the assembly folder, which later runs took for a sample.
- Shasta needed
pigz, which was not in the environment. - Programs failed silently: their output was discarded and exit codes ignored.
- Reads given as fasta failed at filtering (Filtlong needs qualities); they are now filtered by length.
Notes
Files
duceppemo/BACoN-v0.3.0.zip
Additional details
Related works
- Is supplement to
- Software: https://github.com/duceppemo/BACoN/tree/v0.3.0 (URL)
Software
- Repository URL
- https://github.com/duceppemo/BACoN