I suppose that megan-map-Oct2019.db.zip is for --mapDB parameter?
Does it mean there is no need to give input for the parameters such as --acc2taxa, --acc2eggnog and --acc2interpro2go?
In addition, I understand that megan-map-Oct2019.db.zip doesn’t contain information about KEGG pathways. But If I have data from KEGG website (https://www.genome.jp/kegg/) and is there any way that I can provide daa2rma with the KEGG data? If so, how?
Correct: the --acc2taxa etc options are no longer required, the db file contains all those mappings.
To use your own KEGG mapping, you need to add another column ‘KEGG’ to the mapping tables. It should provide the KO id for those accessions, for which the KO id is known.
I will update the CE map file to contain the old 2011 mappings of KEGG later this week.
megan-map-Oct2019.db is a SQLITE database file and you can open it using sqlite3 on linux or MacOS. You can add columns to it etc, see the SQLITE documentation for details.
To get you started:
Use the sqlite command .schema to see the database schema and
use the sqlite command select * from mappings limit 10; to list the first ten rows in the mapping table.
Unfortunately, I don’t have a 2011 mapping file for KEGG so I won’t be able to add KEGG mappings to the database… To use KEGG, you will either have to add your own KEGG mapping to the database or use MEGAN UE.
I found the same issue with you. Do you already solved your problem? I’ve extracted the database from MEGAN download file and running it with --mapDB but it doesn’t work in me. How to make it works for convert .DAA file to .RMA file with daa2rma?
Version MEGAN Community Edition (version 6.12.3, built 14 Aug 2018)
Copyright (C) 2018 Daniel H. Huson. This program comes with ABSOLUTELY NO WARRANTY.
Caught:
jloda.util.UsageException: Invalid, unknown or duplicate option: --mapDB megan-map-Oct2019.db
, use option ‘-h’ for help
at jloda.util.ArgsOptions.done(ArgsOptions.java:210)
at megan.tools.DAA2RMA6.run(DAA2RMA6.java:167)
at megan.tools.DAA2RMA6.main(DAA2RMA6.java:64)
I already check daa2rma -h but there is no parameter --mapDB. So I try to use parameter such as g2t etc but it still doesn’t work. Do you have an advice for me to make it works?