Git Product home page Git Product logo

q2-vizard's Introduction

q2-vizard

The first choice of wizard lizards for interactive, generalized microbiome data visualization!

Please note that q2-vizard is currently in an alpha release state. While this plugin can be installed as a conda package, it has not been tested in integration against our other plugins yet. It is slated to be officially released in 2024.10 within the QIIME 2 Amplicon Distribution. In the meantime, please follow install instructions below if you'd like to take it for a test drive!

Installing q2-vizard (pre-2024.10 Release)

  1. Install conda using the same instructions provided in the QIIME 2 User Docs.

  2. Create a q2-vizard development environment using the 2024.5 environment file included in this repository:

conda env create -n q2dev-vizard -f https://raw.githubusercontent.com/qiime2/q2-vizard/dev/environment-files/2024.5-vizard-environment.yml
  1. Activate your new environment and enjoy!
conda activate q2dev-vizard

Using q2-vizard (pre-2024.10 Release)

The following Metadata vizualizations are available for use, with examples below:

scatterplot_2d

This visualizer provides an exploratory view of your Metadata - allowing for any two NumericMetadataColumns to be plotted against each other, with an optional third CategoricalMetadataColumn used for color-coding. You can easily toggle between different measures using the drop downs for X, Y, and colorBy.

Demo

Interactive Link

curveplot

Coming soon!

heatmap

Coming soon!

boxplot

Coming soon!

q2-vizard's People

Contributors

cherman2 avatar ebolyen avatar gregcaporaso avatar lizgehret avatar q2d2 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

q2-vizard's Issues

ENH: `heatmap`: support `row_colors` and feature metadata annotation on plots

Current Behavior
Currently supports label annotation of sample metadata information.

Proposed Behavior
Please allow the same for features. And please support annotation with row_colors and col_colors instead of or in addition to label annotation. E.g., see the following plot from the seaborn clustermap docs.

image

E.g., color by phylum affiliation. Allow level selection from semicolon-delimited feature IDs? This would be useful for taxa but also, e.g., KEGG annotation.

Plot formatting issues to generate publication-ready figures

Improvement Description
The boxplots and dot plots are great as a quick report, but are not publication-ready and cannot be edited in illustrator.

The moving pictures tutorial PD boxplots are a good example; particularly when setting the category to "ReportedAntibioticUsage", the columns (n = 2) become very wide and ugly, as plot width remains constant.

Proposed Behavior
I have a number of suggestions to improve these (ordered by importance). Some of these suggestions imply an interactive visualizer (similar to q2-types or emperor) so might be unnecessarily complex here, but others are more general and could be input as parameters, similar to something like qiime1's make_distance_boxplots.py (and even if an interactive visualizer is feasible, setting these parameters programmatically should still be possible).

  1. Plot width should scale by number of columns by default. Thus, a 2-column boxplot should be fairly narrow and a, say, 18-column boxplot should fill the screen.
  2. Drag plot edges to manually resize
  3. Allow coloring/scaling of points by metadata
  4. For correlation plots, support trendlines, curve smoothing/rolling averages, and confidence intervals by metadata category (and toggle on/off data points), ideally with user-defined colors.
  5. Toggle on/off outlier points on boxplots.
  6. Select color for labels, axes, and background
  7. Select font typeface and size (in points/picas)
  8. boxplots generated by beta-group-significance and alpha-group-significance appear to be formatted differently. Making these uniform would be nice for publication.
  9. Allow in-line editing of labels, e.g., to rename cryptic metadata names that are used as labels
  10. Set axis ranges and intervals
  11. Allow manual ordering of columns in boxplots. Dragging/dropping columns to re-order would be a neat way to do this in an interactive way.
  12. Allow all plots to be printed in multiple formats: SVG, PDF, TIFF, JPEG

References

  1. cannot be edited in illustrator
  2. PD boxplots
  3. make_distance_boxplots.py
  4. beta-group-significance
  5. alpha-group-significance

generate statistics summary table for all tests

Current Behavior
It is great that many visualizations show associated statistical tests, and that for some visualizations these results can be downloaded as csv.

However, often many different tests are being performed (e.g., a separate test for each metadata category) and it would be laborious to flip through all visualizations, download results, and concatenate. It is even more laborious to to this for visualizations that do not have an option to download as a csv (e.g., alpha correlation). Just globbing these files was easy in qiime1, but not with qzv files.

Questions
What if all statistical tests associated with a single qzv were automatically compiled into a single summary table, and that table could be downloaded from a "download summary csv" button at the top of the page?

MAINT: replace cdn links in vega specs.

Replace cdn links in index.html assets with vendored json to ensure that visualizations still work even if (i.e., when) the server(s) associated with those links are no longer active.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.