biocore / empress

A fast and scalable phylogenetic tree viewer for microbiome data analysis
BSD 3-Clause "New" or "Revised" License
45 stars 31 forks source link

set the min, middle, max value of the colorbar #529

Open maque4004 opened 3 years ago

maque4004 commented 3 years ago

Hi empress developer,

Can I set the min and max value of the colorbar when I add a layer of boxplot? and how? For example, I'd like to set the max and min value of the colorbar to (2, -2) image

Thanks in advance!

Best, Jericho

kwcantrell commented 3 years ago

Hello @maque4004, we are currently in the processes of adding this feature to empress. If you are interested, you can checkout our development branch (see #521). Additional, somewhat related, #484 will also add the ability to color the tree branches using a gradient color scheme.

maque4004 commented 3 years ago

Thanks @kwcantrell Now I ran the codes as described in #521 git checkout -b kwcantrell-center-colormaps master git pull https://github.com/kwcantrell/empress.git center-colormaps pip install -e . qiime dev refresh-cache

So I can set the boundaries of the colorbar, but it raised an error below when I set the min value to a negative value. (If I set the min value >= 0, it can work) image