nf-core / eager

A fully reproducible and state-of-the-art ancient DNA analysis pipeline
https://nf-co.re/eager
MIT License
143 stars 80 forks source link

Add MEGAN to use tools to make OTU table for MALT #770

Closed jfy133 closed 3 weeks ago

jfy133 commented 3 years ago

Is your feature request related to a problem? Please describe

For microbiome/metagenomic screening analysis, typically the main file type is an OTU table. We already have this with Kraken, but do not generate such as thing for MALT based alignments.

Describe the solution you'd like

I've discovered there are utility tools in the the MEGAN6 than can get us almost there quite easily from an RMA6 file - it can extract for (one sample at a time) all taxa/functional category, and counts for each.

The two options are:

compute-comparison
rma2info

With the latter also in principle allowing filtering to different domains, but also to different taxonoimc rank.

Would have to write a little script to combine each sample, and perform filtering, but this cna be done very easily e.g. with R.

Describe alternatives you've considered

Nix

Additional context

Would likely have to be added with DSL2, as the bioconda MEGAN package requires JDK >=11.

jfy133 commented 6 months ago

Being added in: https://github.com/nf-core/eager/pull/1050/files#diff-0a95b4b1fb6422070cf6149539d7fc1c8c021ed19bf6ea2c4bb87b824383f9a6