merenlab / anvio

An analysis and visualization platform for 'omics data
http://merenlab.org/software/anvio
GNU General Public License v3.0
426 stars 145 forks source link

anvi-interactive - normalization of the layers data is not working #1342

Open FlorianTrigodet opened 4 years ago

FlorianTrigodet commented 4 years ago

Using the master version.

I have noticed that the normalisation (to log or square root) of the layers misc data is not properly working. It changes the scale right, but does not change the bar size.

Normal: Screen Shot 2020-01-31 at 5 34 52 PM

Log transformed: Screen Shot 2020-01-31 at 5 35 08 PM

Log transformed, but I've changed the scale back to normal values: Screen Shot 2020-01-31 at 5 42 55 PM

ozcan commented 4 years ago

Hi Florian, I can not reproduce this problem, is there a step I might be missing? I can switch between log/none normalization with no problems, It looks like this for me: https://recordit.co/LoUIOLcuIe

Also It looks like in the screenshot titled "normal" you are actually using log norm. Can you give us more steps to reproduce this? Or maybe an example data?

Thank you

FlorianTrigodet commented 4 years ago

Hi @ozcan !

I see the confusion here, I hope this example will give you more information: Using anvio/tests/run_manual_interactive.sh I got the same thing as in your video: https://recordit.co/5iLriCzUg2

But after log transformation, the bar should not look like this: before

They should look like that: after

Does that make more sense?

FlorianTrigodet commented 4 years ago

Here is what's happening: before The scale is changed correctly but the data (bar) are not log transformed.