Skip to content
forked from biocore/empress

A very fast and scalable phylogenetic visualization viewer

License

Notifications You must be signed in to change notification settings

sjanssen2/empress

 
 

Repository files navigation

Empress

Build Status

Empress is a fast and scalable phylogenetic tree viewer.

Installation

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!

Example: Using Empress in QIIME 2

Empress can visualize Phylogeny[Rooted] QIIME 2 artifacts. We're going to use data from the QIIME 2 Moving Pictures Tutorial:

Input Artifacts and Metadata

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).

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.

Example 1: Using Empress to visualize a tree "standalone"

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.

Empress screenshot in q2view

Example 2: Using Empress to visualize a tree in tandem with an ordination

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.

Empress and Emperor example GIF in q2view

Output Artifacts

This QIIME 2 visualization can be viewed either using qiime tools view or by uploading it to view.qiime2.org.

Running Empress' Tests

Please see the tests/README.md file for instructions on how to run Empress' tests.

Acknowledgements

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.

About

A very fast and scalable phylogenetic visualization viewer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 58.0%
  • Python 33.3%
  • HTML 3.8%
  • CSS 3.7%
  • Other 1.2%