PitchInteractiveInc / Phinch

Phinch is an open-source framework for visualizing biological data, funded by a grant from the Alfred P. Sloan foundation. This project represents an interdisciplinary collaboration between Pitch Interactive, a data visualization studio in Oakland, CA, and biological researchers at UC Riverside.
http://phinch.org/
BSD 2-Clause "Simplified" License
149 stars 30 forks source link

Hide OTU in TaxonomyBarChart hiding wrong OTU #69

Closed iimog closed 6 years ago

iimog commented 7 years ago

In the TaxonomyBarChart when hiding an OTU using the search box, the OTU that is actually hidden is rarely the intended one. Here is a minimal example to demonstrate the bug:

  1. Load this biom file into Phinch.
  2. "Proceed to Gallery" > "Taxonomy Bar Chart"
  3. Enter "fungi" in the "search..." box
  4. Click "hide"

The blue "animalia" bar disappears instead of the yellow "fungi" bar.

The same problem exists for unhiding

  1. Enter "plant" in the "search..." box
  2. Click "show"

The blue "animalia" bar re-appears.

This bug is critical as it can lead to wrong interpretation of the data.

phinch_preclick phinch_postclick