anvio icon indicating copy to clipboard operation
anvio copied to clipboard

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

Open FlorianTrigodet opened this issue 5 years ago • 3 comments

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

FlorianTrigodet avatar Jan 31 '20 23:01 FlorianTrigodet

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

ozcan avatar Feb 15 '20 20:02 ozcan

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 avatar Feb 20 '20 16:02 FlorianTrigodet

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

FlorianTrigodet avatar Feb 20 '20 17:02 FlorianTrigodet