I am trying to create a PCA plot, but I seem to be getting this issue:
UnsetValueError: ColorBar(id='1183', ...).color_mapper doesn't have a value set
I am not too familiar with bokeh, can I map the color manually?
Hard to debug that without more information / your code.
Have you ever used ggplot? You might have a better experience with:
from hail.ggplot import *
cols = mt.cols()
fig = (ggplot(cols) +
geom_point(aes(x=cols.scores[0], y=cols.scores[1], color=cols.pheno.SuperPopulation)))
fig.show()
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_21282/3604287216.py in <module>
----> 1 from hail.ggplot import *
ModuleNotFoundError: No module named 'hail.ggplot'
Can I know which version has ggplot? Mine is version 0.2.81-edeb70bc789c
If you ever don’t have a feature, just update to latest. Hail 0.2.* will always be backwards compatible, so there’s no good reason not to update. There’s a change log here that tracks when we add new stuff: Hail | Change Log