Diego Alvarez Saravia
08/27/2026, 1:14 PM--min_contig_size, but it doesn't work completely as expected. Not every binner supports it, so in practice it is only enforced for MetaBAT2, SemiBin2 and MetaBinner. MaxBin2 falls back to its internal 1000 bp default because we never pass -min_contig_length, CONCOCT has no length filter at all and chunks every contig, and COMEBin has no way to set one either (issue reported: github.com/nf-core/mag/issues/1100). So the binners are not seeing the same contigs, which makes them hard to compare and wastes compute on contigs we are going to discard anyway.
The cleaner solution is to filter the assemblies before feeding them to the binners. There are two options on where, because the read alignment is shared:
1. Right after assembly. The filter applies to everything: binners, assembly QC and the ancient DNA path. Simplest to implement, no BAM handling. Two drawbacks: ancient DNA loses the short fragments, and ALE and DeepMAsED end up evaluating a trimmed assembly. It also shifts the coverage values, since reads that used to map to short contigs get reassigned or go unmapped.
2. Map the full assembly, filter afterwards. Assembly QC and ancient DNA keep everything, and the depths stay exactly as they are today. The cost is that we have to filter the BAMs too, one filter per assembly plus one per BAM.
Filtering only the FASTA and leaving the BAMs untouched is not an option, I tested it: COMEBin dies with a KeyError in gen_cov.py and MetaBinner with an IndexError in component_binning.py, both because a reference present in the BAM is missing from the FASTA. MetaBAT2, MaxBin2, CONCOCT and SemiBin2 tolerate it and return identical bins either way.
Thoughts <!subteam^S08MYEKMNTX>?Jim Downie
08/27/2026, 1:24 PMDiego Alvarez Saravia
08/28/2026, 12:15 PMJim Downie
08/28/2026, 12:16 PMDiego Alvarez Saravia
08/28/2026, 12:19 PMDiego Alvarez Saravia
08/28/2026, 12:21 PMJim Downie
08/28/2026, 12:22 PMDiego Alvarez Saravia
08/28/2026, 12:24 PMDiego Alvarez Saravia
08/28/2026, 1:04 PMJames Fellows Yates
09/02/2026, 12:52 PMJames Fellows Yates
09/02/2026, 12:54 PMAlex Hübner
09/02/2026, 7:11 PMwork directory, but maybe I am missing something.Alex Hübner
09/02/2026, 7:15 PMDiego Alvarez Saravia
09/02/2026, 7:23 PMJames Fellows Yates
09/02/2026, 7:34 PMDerek Smith
09/18/2026, 7:27 PMJames Fellows Yates
09/19/2026, 5:18 AMDaniel Straub
09/21/2026, 6:45 AMDiego Alvarez Saravia
09/21/2026, 7:52 AMJames Fellows Yates
09/21/2026, 8:35 AMDerek Smith
09/22/2026, 4:25 PMDiego Alvarez Saravia
09/22/2026, 4:26 PMDerek Smith
09/22/2026, 4:28 PMDiego Alvarez Saravia
09/29/2026, 6:05 AM