glue
glue copied to clipboard
data available to custom viewer
Hi,
I'm trying to create a heatmap custom viewer. I want to load a matrix and to plot it using the matplotlib imshow. I've followed the basket shot tutorial, and I'm trying to imitate it, but I'm stuck at the beginning. I know to to create an attribute that represents one column of the dataset, but I don't know how to access the whole array. Any help would be much appreciated. Best regards,
Jose Blanca
Hey Jose,
If you already have the matrix, you might just try showing it in the image viewer, which is designed to display a 2D attribute.
I have a (very messy) heatmap viewer here: https://github.com/gluesolutions/glue-genomics-viewers/tree/main/glue_genomics_viewers/heatmap, although it assumes you have some linked datasets that provide metadata about the rows and columns so it probably isn't going to be worth your time to get it working directly for your data.