Hello <!subteam^S08MYEKMNTX> and everyone! The ne...
# mag
d
Hello <!subteam^S08MYEKMNTX> and everyone! The next release will be mag v6, which means we can break things. So far the only breaking change is making ALE opt-in, but I have a few more in mind I’d like to discuss: 1. Drop decontamination. #detaxizer is mature enough that we can point users there for host removal before running mag. We currently have a manual bowtie2/minimap2 approach, and we talked about migrating to hostile, but I don’t think it’s worth the effort. 2. Enable only a subset of assemblers and binners by default. A new user running with defaults gets 2-3 assemblers and 6 binners (and that’s with a single read type), which is a big run. I propose making short-read-only SPAdes, Flye and myloasm (when merged) opt-in, as well as CONCOCT, MaxBin2 and MetaBinner. This would leave MEGAHIT, metaMDBG and hybrid SPAdes as the default assemblers, and MetaBAT2, COMEBin and SemiBin2 as the default binners. The selection is based on a mix of speed and the results we got in the v5 paper benchmarks. 3. Make Bakta the default instead of Prokka, since Prokka is no longer maintained, and Bakta has a better database. 4. Replace QUAST with something lighter. We discussed this before, so I assume we’re aligned on this, and I plan to include it in this release. Happy to hear thoughts, especially on 1 and 2. And if you want to propose another breaking change, please do! I’ve also been considering @Jim Downie’s suggestion of splitting mag in two (assembly + binning, and post-binning), but I’d leave that for v7.
d
My 2 cents: 1. Fine to me 2. Agreed. Computational efficiency (speed & RAM) mixed with performance sounds good as binner defaults. Selection of assemblers seems fine, one per sequencing type, and rather the efficient ones. 3. Thats a bit tricky imho. Bakta is up to date, but Prokka has a broader taxonomic target (not just bacteria). So either the default is the current best with limited scope or outdated but more coverage. I’d opt for more coverage as default, but I dont feel strong about it. 4. Not sure about that point, fine either way I think
j
Briefly back from the dead, in case you want my input: 1. I agree but we should also try and put more recent methods like hostile/deacon in detailer 2. Also fine 3. Agree with Daniels take - I would stick with prokka as default. Bacterial people will know to look for Bakta 4. Fine with me
j
1. Not sure I agree with this - personally I would prefer to retain pre-processing steps that would affect the outcome within the pipeline. Personally I would prefer that we co-operated with Detaxizer to make shared a shared subworkflow/subworkflows to achieve this? 2. Agreed - but also maybe we should revisit github.com/nf-core/mag/issues/455#… - creating sets of profiles that enable/disable different sets of options, for ease of selection. So
-profile fast
,
-profile full
, etc.? 3. Agreed with James and Daniel - but I think this will fall by the wayside if we do split out post-binning. But for now I prefer breadth. 4. Very much pro-this, /if/ all we really need from QUAST are basic assembly statistics.
I’ve also been considering @Jim Downie’s suggestion of splitting mag in two (assembly + binning, and post-binning), but I’d leave that for v7.
I would wait until pipeline chaining is here personally and we can revisit this then. It would also depend on someone being willing to maintain an “nf-core/postmag” pipeline.
👍 1
j
Yeah to be fair doing 1. Would ideally mean pipeline chaining already exists...
d
Thanks for the feedback 😄 I’m going to revisit the decontamination modernization, either by integrating some workflow from detaxizer or at least deacon.
but also maybe we should revisit github.com/nf-core/mag/issues/455#… - creating sets of profiles that enable/disable different sets of options, for ease of selection. So
-profile fast
,
-profile full
, etc.?
I think this is a good idea, to make it more concrete, maybe we can make a list of which profiles we can implement (and which tools should they include) in the same github thread? And well, if you would like to open a PR for that, that’s even a better option 😄
j
1. Also agree that the “standard” decontamination process should stay, since it’s all but a gold standard at this point to use Bowtie or BWA-mem to remove host dna. Doc could recommend detaxizer as an alternative. Perhaps we could have a master switch (or profile, related to next point ) to skip all QC & host removal when providing clean reads, but I don’t know how that aligns with the current switch philosophy. 2. Love the idea of profiles for specific assembler/binner combos!
--profile fast
could also turn on the
--skip-fastqc
switch since that software is pretty redundant with fastp’s reports. 3. yup 4. 100%, quast is overkill and the amount of files it creates in work/ can easily cause inode quota problems for larger project and/or
--profile full
runs (been there done that) Related to point 4, a “light” profile could be useful for users with projects large enough to cause inode quota busts. It could focus on using only the (arguably) best binner(s), skip fastqc, use only one assembler. The main source of quota busts (except QUAST) is the multiplicity of n_assemblers*n_binners, which is made even worse by the four highly paralellized DAS Tools subworkflows. COMEBin could be the default binner for profile light, though it might be confusing with that profile name since it’s by fare the hungriest binner.
j
I think this is a good idea, to make it more concrete, maybe we can make a list of which profiles we can implement (and which tools should they include) in the same github thread?
I’m just a little wary that Nextflow itself does not recommend usign profiles for anything other than resource configuration nowadays (or tests) because config resolution is a bit magical. Predefined settings should really come via
params.yaml
files. But it’s probably in most cases OK
j
Not sure that’s so true any more. Nextflow with the new syntax parser always applies profiles last and in the order they were specified, AFAIK
👍 1
👀 2
https://github.com/nextflow-io/nextflow/pull/7777 Actually might need to wait for this one
j
Not sure that’s so true any more. Nextflow with the new syntax parser always applies profiles last and in the order they were specified, AFAIK
Good to know!