File tree Expand file tree Collapse file tree 3 files changed +8
-15
lines changed
Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -54,18 +54,7 @@ visualization with ``hg.Viewconf.locks()``.
5454 Multivec Files
5555---------------
5656
57- To view multivec files, we have to load the higlass plugin track. Execute the following code in a cell in the Jupyter notebook you're using.
58-
59- .. code-block :: javascript
60-
61- %% javascript
62-
63- require ([" https://unpkg.com/higlass-multivec/dist/higlass-multivec" ],
64- function (hglib ) {
65-
66- });
67-
68- Create the multivec and output file:
57+ To view multivec files, create the multivec and output file:
6958
7059.. code-block :: python
7160
@@ -84,7 +73,8 @@ Create the multivec and output file:
8473 )
8574
8675
87- Create the viewer:
76+ Create the viewer. The `horizontal-stacked-bar ` track is a plugin track so we
77+ have to pass in its url so higlass knows where to load it.
8878
8979.. code-block :: python
9080
@@ -93,7 +83,9 @@ Create the viewer:
9383 ts = multivec(output_file)
9484 view = hg.view(
9585 hg.track(" top-axis" , height = 20 ),
96- ts.track(" horizontal-stacked-bar" , height = 50 ),
86+ ts.track(" horizontal-stacked-bar" , height = 50 ,
87+ plugin_url = " https://unpkg.com/higlass-multivec/dist/higlass-multivec"
88+ ),
9789 )
9890 view.domain(x = [0 , 1000000 ])
9991
Original file line number Diff line number Diff line change 3232 "viewport-projection-horizontal" : "top" ,
3333 "vertical-chromosome-labels" : "left" ,
3434 "vertical-gene-annotations" : "left" ,
35+ "sequence-logo" : "top" ,
3536}
3637
3738datatype_default_track = {
Original file line number Diff line number Diff line change @@ -730,7 +730,7 @@ def view(
730730 else :
731731 position = utils .track_default_position .get (track .type )
732732 if position is None :
733- raise ValueError ("No default track type" )
733+ raise ValueError (f "No position for track type: { track . type } " )
734734
735735 data [position ].append (track )
736736
You can’t perform that action at this time.
0 commit comments