![]()
A DISPLAY-type anviāo artifact. This artifact is typically generated, used, and/or exported by anviāo (and not provided by the user)..
š To the main page of anviāo programs and artifacts.
anvi-display-contigs-stats anvi-display-codon-frequencies anvi-display-functions anvi-display-metabolism anvi-display-pan anvi-display-structure anvi-inspect anvi-interactive anvi-script-checkm-tree-to-interactive anvi-script-gen-functions-per-group-stats-output anvi-script-snvs-to-interactive
There are no anviāo tools that use or require this artifact directly, which means it is most likely an end-product for the user.
This page describes general properties of anviāo interactive displays and programs that offer anviāo interactive artifacts.
Anviāo uses a simple terminology to address various aspects of interactive displays it produces. The same terminology applies regardless of which program initiated the interface ā whether it is anvi-interactive, anvi-display-pan, or any other display program. Here is a quick-reference table:
| Term | Definition |
|---|---|
| Items | The individual elements displayed in the central tree/dendrogram. Depending on the context, items can be contigs, gene clusters, genes, samples, or any other unit of data. Items are the rows of your data matrix. |
| Layers | The concentric rings of data that surround the central tree. Each layer represents a different data dimension ā for instance, a sampleās coverage, a genome in a pangenome, or a categorical annotation. Layers are the columns of your data matrix. |
| View | A specific representation of your data. Different views show different aspects of the same dataset (e.g., mean coverage vs. detection in a metagenomic context). Views are stored in the database and can be extended with --additional-view. |
| Items order | The tree or dendrogram at the center of the display that organizes items. It can be a phylogenetic/phylogenomic tree, a hierarchical clustering dendrogram, or a linear order. Users can provide custom orders through misc-data-items-order. |
| Layer order | The tree or dendrogram that organizes layers around the display. Users can extend available layer orders through misc-data-layer-orders. |
| Bins | User-defined selections (groups) of items. You can create bins by clicking on branches of the tree. Bins are central to tasks like genome binning in metagenomics or selecting gene clusters in pangenomics. |
| Collection | A named set of bins that can be stored in the database and recalled later. |
| State | A saved configuration of all visual settings ā layer order, colors, normalization, drawing type, etc. States are stored in the database and can be exported/imported with anvi-export-state and anvi-import-state. |
| Additional data | Extra information associated with items or layers that is not part of the core data matrix. Managed with anvi-import-misc-data, anvi-export-misc-data, and anvi-delete-misc-data. |
Now letās see where each of these concepts lives in an actual display.

Items are the units arranged around the center of the display. What they represent depends entirely on the context: contigs in a metagenomic analysis, gene clusters in a pangenome, genomes in a phylogenomic tree, or anything else. Layers are the concentric rings of data surrounding the items tree. Each layer shows a data value for every item, like coverage of a contig in a given sample, or presence/absence of a gene cluster in a given genome.
Together, items and layers form a data matrix: items are the rows, layers are the columns.

The items order is the tree or dendrogram at the center of the display. It determines how items are organized: it can be a phylogenetic tree, a hierarchical clustering dendrogram, or a simple linear order. The layer order is the smaller tree on the outside of the display that organizes layers. Anviāo computes layer orders automatically, but you can provide your own through misc-data-layer-orders.

A view defines what numerical values are displayed in the layers. For instance, in a metagenomics dataset, the data that can be viewed are mean coverage, detection, or variability; and with pangenome, the options are presence/absence or frequencies of gene clusters. Views are stored in the database and can be switched using the Data dropdown in the settings panel. You can also add custom views with the --additional-view flag.

Bins are user-defined groups of items. You create them by clicking on branches of the dendrogram. In a metagenomic context, bins typically represent metagenome-assembled genomes (MAGs). In a pangenomic context, they can represent groups of gene clusters (core genome, accessory genome, etc.). Bins are organized into collections that can be stored in the database and used by downstream programs like anvi-summarize.

Beyond the core view data, you can decorate your display with additional data for both items and layers. Additional data for items appears as extra layers on the outside of the display (e.g., taxonomy assignments, GC content, bin colors). Additional data for layers appears next to the layer order dendrogram (e.g., sample metadata like body site, or genome metadata like species name). These are managed through anvi-import-misc-data.
See this article for a detailed guide on extending anviāo displays with additional data tables.
The interactive interface has two major areas of interaction: (1) the space for visualization in the middle area, described in the previous section and (2) the Settings panel on the left of the screen.

If closed, the settings panel can be opened by clicking on the little button on the left-middle part of your browser. When opened, you will see multiple tabs:
But before we start talking about these tabs, it is worthwhile to mention that at the bottom of the settings panel you will find a section with tiny controls that are available in all tabs:
Through these controls you can,
Draw: create or refresh the display.
Load or Save: to save the current state of the display or load another state. The state include all the aesthetic choices of your figure: from the heights and colors of your layers, to the choice of items/layer organisation. It does not include bins and collections! These have to be saved and loaded separately in the Bins tab.
Export: to download an SVG file of the current figure.
Align: center the display.
š” Before talking about Tabs, hereās a useful tip: you can conveniently switch between tabs using your keypad. For instance, pressing 1 will navigate you to the Main tab, 2 to the Options tab, and so forth.
For more tips you can check out the Tips + Tricks section at the end of this page.
OK. Letās talk about each tab you will find in the settings panel.
This is one of the most frequently used tabs in the interface, and there are multiple sections in it.

abundance;coverage;detection will select all layers matching any of those terms), * wildcards for pattern matching (e.g., GC_* will match GC_content, GC_skew, etc), or any combination of these (e.g., hmms;DAY*18) for flexible layer selection.If you want to remove a layer from the interface, simply change the height to a value of 0.

Edit attribute for multiple layers: if you select multiple layers using the check boxes, you can change values for multiple layers at once. The search box has the same features explained above.

In the Options tab, just like in the Main tab, we have two sections: Items and Layers.


Mastering these in the Options Tab will minimize the post-processing of your anviāo figures for high-quality and good-looking publication ready images.
Anviāo allows you to create selections of items shown in the display (whether they are contigs, gene clusters, or any other type of data shown in the display). Bins tab allows you to maintain these selections. Any selection on the tree will be added to active bin in this tab, visible by the selection button on the left of the binās name.

The data tab displays the value of items underneath the mouse pointer while the user browses the tree.

Displaying the numerical or categorical value of an item shown on the tree is not an easy task. We originally thought that displaying pop-up windows would solve it, but besides the great overhead, it often became a nuisance while browsing parts of the tree. We could show those pop-up displays only when use clicks on the tree, however click-behavior is much more appropriate to add or remove individual items from a bin, hence, it wasnāt the best solution either. So we came up with the ādata tabā. You have a better idea? I am not surprised! We would love to try improve your experience: please enter an issue, and letās discuss.

The first section of the search tab allows you to search using any term/expression in a multitude of fields. These fields include the itemsā name, which are contigs/splits when using anvi-interactive, or gene clusters when using anvi-display-pan. You can also select a layer of interest and search for every item matching an expression, like finding all contigs with a mean coverage above 10x, find gene clusters with a min AAI under 50%, etc.

In this section, you can search for functional annotations across all functional annotation sources available in your databases. You can search for one or multiple terms, and select specific annotation sources.

This is specific to anvi-display-pan. There you can select gene clusters based on multiple filters.

At the very bottom of the Search tab are a few buttons to view and explore the results of your search:

The news panel provides information and external links tracking major Anviāo releases and development updates. (We donāt update this news section very often).
In this tab, you will find the links to the authors, the project page, the githubās list of issues, how to cite anviāo, an access to the discord server and the github repository.
Here are some small conveniences that may help the interface serve you better (we are happy to expand these little tricks with your suggestions).
You can zoom to a section of the display by making a rectangular selection of the area while the pressing the shift button.
You can click an entire branch to add items into the selected bin, and remove them by right-clicking a branch.
If you click a branch while pressing the Command or CTRL button, it will create a new bin, and add the content of the selection into that bin.
Tired of selecting items for binning one by one? right-click on an item and select Mark item as ārange startā to set an āin pointā, then right-click on another item and select Add items in range to active bin or Remove items in range from any bin to manipulate many items with few clicks. Nice!
By pressing 1,2,3,4,5,6,7 and 8 you can go between Main, Options, Bins, Data, Notes, Search, News and Anviāo tabs!
The interactive interface recognizes a handful of keyboard shortcuts to help speed up your workflow
S key toggles the Settings panelD key triggers a redraw of your visualizationT key toggles showing the Title panel1 through 8 will toggle between tabs within the Settings panel, granted the Settings panel is currently shown.CTRL+Z and CTRL+SHIFT+Z will undo or redo bin actions, respectively.Edit this file to update this information.