So im confused on which mapping file to use, should I use CAZY mapping file or megan-map-Jul2020-2-X.db.zip? Will I be able to get visualize both the enzyme family and class on EC?
That mapping won’t work straight out of the box because MEGAN uses single integers as IDs.
For example, the CAZY mapping file shows:
AA2 NP_001237785.1 1.11.1.11
Opening a MEGAN mapping file with sqlite3, you can see how this is represented there:
sqlite3 megan-map-Jan2021-ue.db
SQLite version 3.26.0 2018-12-01 12:34:55
Enter “.help” for usage hints.
sqlite> select EC from mappings where Accession=“NP_001237785”;
111010011
If numbers is an array containing the EC numbers, I use the following calculation: