higlass-python icon indicating copy to clipboard operation
higlass-python copied to clipboard

ValueError: No default track type (linear-heatmap)

Open LiuJie1117 opened this issue 1 year ago • 1 comments

Question Description

Hello developers, I am testing HiGlass-python (version=1.0.0) on my MacBook Pro M1. I found some track-types showed in https://docs.higlass.io/track_types.html don't work. For example I tried to create a horizontal triangle heatmap as I used to do with higlass-docker. This plot show my past results.

截屏2023-05-29 20 46 20

I tested the code below and got error ValueError: No default track type, I suppose the track-type linear-heatmap is no longer supported in HiGlass-v1? However in doc of HiGlass-python (http://docs-python.higlass.io/getting_started.html#track-types), it gives no warnings about the changes in track-type, and just guides me back to https://docs.higlass.io/track_types.html#.

import higlass as hg

tileset1 = hg.cooler("./tmp/sample.mcool")

track1 = tileset1.track("linear-heatmap", height=300)   

view1 = hg.view(track1)  

view1

If the problem do have something to do with version of HiGlass-python, I will highly appreciate it if you can update your doc website! And welcome any advice to tackle with my problem!

A thousand thanks!

LiuJie1117 avatar May 29 '23 13:05 LiuJie1117

Using print(dir(higlass)) I found the true track-type I need!

It should be horizontal-heatmap instead of linear-heatmap showed in doc website https://docs.higlass.io/track_types.html.

But I still find linear-heatmap in Track Type list with print(dir(higlass)), I don't know what linear-heatmap designed for.

If developers can update a more detailed instructions, it will do great help, thanks.

截屏2023-05-31 10 47 32

LiuJie1117 avatar May 31 '23 02:05 LiuJie1117