Empress is a fast and scalable phylogenetic tree viewer.
Before following these instructions, make sure your QIIME 2 conda environment is activated (a version of at least 2019.10 is required). Then, run the following commands:
pip install git+https://github.com/biocore/empress.git
pip install git+https://github.com/biocore/emperor.git
qiime dev refresh-cache
qiime empress
If you see information about Empress' QIIME 2 plugin, the installation was successful!
Empress can visualize Phylogeny[Rooted]
QIIME 2 artifacts.
We're going to use data from the QIIME 2 Moving Pictures Tutorial:
The following files are included in the repository, alternatively you can download these individually from the URLs below (note some filenames may change due to the underlying hosting systems).
rooted-tree.qza
view | downloadunweighted_unifrac_pcoa_results.qza
view | downloadtable.qza
view | downloadtaxonomy.qza
view | downloadsample_metadata.tsv
download
From the base Empress directory, you can run qiime empress plot
as shown
below. Alternatively, if you've downloaded the files individually, you'll need
to update the filepaths as needed.
qiime empress plot \
--i-tree docs/moving-pictures/rooted-tree.qza \
--i-feature-table docs/moving-pictures/table.qza \
--m-sample-metadata-file docs/moving-pictures/sample_metadata.tsv \
--m-feature-metadata-file docs/moving-pictures/taxonomy.qza \
--o-visualization docs/moving-pictures/empress-tree.qzv
This generates a visualization of a phylogenetic tree at
docs/moving-pictures/empress-tree.qzv
.
qiime empress plot \
--i-tree docs/moving-pictures/rooted-tree.qza \
--i-pcoa docs/moving-pictures/unweighted_unifrac_pcoa_results.qza \
--i-feature-table docs/moving-pictures/table.qza \
--m-sample-metadata-file docs/moving-pictures/sample_metadata.tsv \
--m-feature-metadata-file docs/moving-pictures/taxonomy.qza \
--o-visualization docs/moving-pictures/empress-tree-tandem.qzv
This generates a visualization of a phylogenetic tree alongside a visualization
of a PCoA plot (using Emperor) at docs/moving-pictures/empress-tree-tandem.qzv
.
This QIIME 2 visualization can be viewed either using qiime tools view
or by
uploading it to view.qiime2.org
.
Please see the tests/README.md
file for instructions on how to run Empress' tests.
This work is supported by IBM Research AI through the AI Horizons Network. For more information visit the IBM AI Horizons Network website.
Empress' JavaScript code is distributed with the source code of various
third-party dependencies (in the empress/support_files/vendor/
directory).
Please see
DEPENDENCY_LICENSES.md
for copies of these dependencies' licenses.