merenlab / anvio

An analysis and visualization platform for 'omics data
http://merenlab.org/software/anvio
GNU General Public License v3.0
413 stars 142 forks source link

anvi-display-functions, KOfam, sugar #2250

Open Lcornet opened 2 months ago

Lcornet commented 2 months ago

Dear anvio teams (on others),

I am working with anvi-display-functions, using KOfam as annotation source. I have a list of Kofams which i know to be linked with Carbon source to summarize which sugar can be used by a bacteria. I would like to reduce the anvi-display-functions to this list and order the plot to group the Kofams by sugar source (Glucose, Mannose, Cellobiose ect ...).

anvi-display-functions work well but i don't know how to (if possible):

  1. limit the Kofams displayed
  2. order the Kofam in the display

Could you point me on some documentation to do this ?

Thanks

ivagljiva commented 2 months ago

Hi @Lcornet ,

There isn't currently a way to restrict anvi-display-functions to a specific set of annotations within a given annotation source. However, I can think of one workaround:

For your second question, I think you could order by sugar source by importing the sugar source information per item in the display, so that this additional data field will then show up in Order By box on the interface. This can be done pretty easily by using anvi-import-misc-data on your profile database before you re-visualize it using anvi-interactive --manual. The tricky bit will be to figure out which item name belongs to each KOfam, since functions in this display are described via a hash value, not the KO accession itself. I am guessing that a workflow like this could work:

The documentation for all of the programs mentioned here (and their associated artifacts) can be found on the anvi'o website. Hopefully it is clear enough that you can figure out the parameters you need for each step. If not, let us know.