Skip to content

fix creation of eggnog task map if an emapper hit contains none or multiple functional categories

Henning Schiebenhöfer requested to merge fix_emapper_v2 into master
  • fix eggnog v5 download
  • fix eggnog v5 result mapping
  • fix emapper log redirection, now is properly written to {task_file_name}.log

Notes

Mapping of the emapper result failed with a KeyError if the functional cog category was empty (-) or contained multiple categories (e.g. IQ).

This is fixed by setting the main- and subrole to the INCONCLUSIVE_ANNOTATIONS['unclassified'] string if the result is empty and writing one line to the map file per character in the functional cog category string.

In addition, the function for writing the map is moved into the EggnogDatabaseV5 class and the functional cog Functional category ID dict is hard coded in the eggnog.py module, removing the requirement for the functional categories file.

Merge request reports