nf-core / mag

Assembly and binning of metagenomes
https://nf-co.re/mag
MIT License
213 stars 110 forks source link

Adding Unicycler as assembly choice for low diversity communities #26

Closed d4straub closed 4 years ago

d4straub commented 4 years ago

Hi there,

I'd like to propose to add Unicycler, which is also used in nf-core/bacass, and is rather specialized on single genomes but is also used successfully with low diversity communities (personal communication Daniel Huson). Unicycler is able to use Illumina and Nanopore data and perform hybrid assemblies. Unicycler also utilizes Spades which is already part of this pipeline.

My reasoning to use mag with Unicycler over bacass is because bacass is not meant for genome mixtures and has e.g. no binning and will develop rather not into supporting this.

Would you be ok to have Unicycler added? I would first open a PR with Unicycler added to the environment (to check that the container still works when merged), and add in a second PR Unicycler into the main.nf.

apeltzer commented 4 years ago

To save you two countless hours: Unicycler 0.4.4 is fine, 0.4.7, 0.4.8 in bioconda are broken with random segfaults. Nobody knows why exactly.

Use it in a separate ocntainer if possible, as we do in bacass too.

apeltzer commented 4 years ago

x-ref: https://github.com/bioconda/bioconda-recipes/pull/15605

https://github.com/rrwick/Unicycler/issues/140#issuecomment-496222163

HadrienG commented 4 years ago

I have no experience with Unicycler for metagenomics but sure, if it works well for low-diversity samples why not!

d4straub commented 4 years ago

I tried it out (enrichment culture, 2 dominating genomes, but many low-abundance) and it worked out horribly. I think that wasn't a good idea!