qiyunlab / binarena

BinaRena: Interactive Visualization and Binning of Metagenomic Contigs
BSD 3-Clause "New" or "Revised" License
29 stars 6 forks source link

Better handling of coverage profiles #61

Open qiyunzhu opened 2 years ago

qiyunzhu commented 2 years ago

With a co-assembly one wants to see differential coverage profiles of bins among samples with convenience.

Currently there is a workaround: Manually select coverage profiles under "opacity". This isn't convenient though. This also does not allow re-calculation of bin abundance.

A possible solution is to create a control somewhere (maybe as an expandable menu in the widget bar) to let the user switch among columns by pressing one key (e.g., "PageUp/Down" or "WASD"). This single action will trigger:

  1. Set the "coverage" to the selected column.
  2. Re-calculate bin abundance in the bin table. Also re-calculate contig information (if weighted by coverage).
  3. Re-render the plot with coverage shown (if previously selected as a display item, e.g., "opacity").