cmdcolin / jbrowse-plugin-gwas

3 stars 0 forks source link

"TypeError: e.toPrecision is not a function" after Zoom to a small region #4

Closed bioShaun closed 2 years ago

bioShaun commented 2 years ago

jbrowse error

cmdcolin commented 2 years ago

Do you happen to know what jbrowse version you are using?

cmdcolin commented 2 years ago

ah, I found this was a real error. I don't know the full cause but a stringified score e.g. the string "0.7604" is getting passed to this function

as a precautionary measure, I can convert to number before doing toPrecision

cmdcolin commented 2 years ago

If you want to try out a fix, you can use this branch

jbrowse create --branch fix_wiggle_tooltip newdirectory

this will use this branch with a fix on it: https://github.com/GMOD/jbrowse-components/pull/2607

cmdcolin commented 2 years ago

This was fixed in the latest release, thanks for reporting!

cmdcolin commented 2 years ago

likely it would be valuable if we can get even better mouseover that gives e.g. the name of the variant you are mousing over

cmdcolin commented 2 years ago

see #2

cmdcolin commented 2 years ago

maybe can close for now though