Below is the beginning of a Blastn file produced by Malt that I import into Megan for a taxo assignment.
The species Curimata macrops was not present in my tre and map files that I used with MALT then the reads were therefore assigned to the Curimata genus level (tax | 143033).
I manually added the Curimata macrops taxon to my MEGAN tre and map files:
(3000038 Curimata macrops -1 100)
How can I now inform Megan to assign the reads that contain in the headers of the Blastn file the term Curimata and macrops to taxon 3000038 (Curimata macrops).
This would allow for quick changes without having to redo the alignments with MALT.
Hi Cedric,
when parsing the blastn file, provide MEGAN with a synonyms file for taxonomy assignment that contains a mapping of the word Curimata to taxon 3000038, tab separated:
Curimata 3000038
MEGAN will then map anything match with the word Curimata in it to taxon 3000038
I just took a look at this:
put the following line in your synonyms file:
tax | 143033 TAB 3000038
where TAB is a tab. Then MEGAN will use 3000038 when it finds the string “tax | 143033” (be sure to include the spaces). However, be sure that you have indeed added 3000038 to ncbi.tre and ncbi.map correctly. If there is a mistake here then the LCA algorithm will not compute the correct assignment/
Many thanks for your precious help.
I finally used the following string in the synonym file “tax | 143033 | macrops” which allows to reassign only macrops. This seems to work well.
Best regards
Cédric