I use the latest version of megan6 in Linux, firstly I use diamond alignment to generate the blastTab file, and then use the tools blast2rma to make taxonomy classification, but when assign the parameter --mapDB, which generate a error message, the code is below:
Version MEGAN Community Edition (version 6.18.2, built 11 Dec 2019)
Copyright (C) 2019 Daniel H. Huson. This program comes with ABSOLUTELY NO
WARRANTY.
Caught: jloda.util.UsageException: Illegal to use both --mapDB and ---acc2... or --
syn2... options, use option '-h' for help
at megan/megan.tools.BLAST2RMA6.run(BLAST2RMA6.java:191)
at megan/megan.tools.BLAST2RMA6.main(BLAST2RMA6.java:66)
real 0m0.796s
user 0m4.342s
sys 0m0.341s
when I change the parameter --mapDB to -a2t , which works for no warning, but if the generated .rma output file were passed to the rma2info tools, which output blank table, the code is below:
time ~/software/megan/tools/rma2info \
--in taxonomy/ncbi_nr/megan_tax.rma \
--class2count Taxonomy \
--paths \
--majorRanksOnly \
--names \
-o taxonomy/ncbi_nr/megan_tax_info.txt
less taxonomy/ncbi_nr/megan_tax_info.txt
output as such:
taxonomy/ncbi_nr/megan_tax_info.txt: No such file or directory
could you help me some suggestions and potential reasons for this
Oliver replied to me that writes:” If you use diamond your next step should be to meganize the diamond alignment files (.daa) using the tool daa meganizer. The meganized diamond files can then be used with MEGAN straight away.”
In my view, updated Megan6 cannot support the blast2rma format and so subcommand rma2info
Did not work, you could try the diamond output as .daa, then piped to daa2rma and rma2info
By the way you could try alternative taxonomy classification software such as kraken2 or any other
Good luck for your metagenome research~ you’re welcome to any further question~
Thank you for your reply and your advice. Ah, I see that’s why the process didn’t work.
Actually I’ve tried to meganize .daa file output using MEGAN6 GUI and it seem works well. But, I wonder is there a differences between output that I got from meganize using MEGAN6 GUI and daa-meganizer using CLI?
Anyway thank you for your recommendation for using alternative taxonomy classification.
I am also having similar issues, although with the latest megan mapping file: megan-map-Jan2021.db
I have successfully used DIAMOND to map my reads against the NCBI nr database, and exported the files as blast format.
I am now trying to convert those into rma files to be used in MEGAN, but I have so far been unable to use the megan mapping file. Here is the command I am trying to use:
The error message is telling me that the --mapDB option is illegal, and when I did ~/megan/tools/blast2rma -h I saw that --mapDB was not listed as one of the parameters.
My understanding is that I am not getting any hits against any of the gene databases because of the mapping file, and I am currently able to use only the taxonomic information because of that. So my question is how can I use the megan mapping file to also obtain the functional info in my rma files?
My apologies if this is a trivial question, but this is the first time I am using MEGAN.
Thank you for your time and help, I look forward to hearing from you!
Marko