Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"lock": false,
"imports": {
"higlass": "https://esm.sh/[email protected]?deps=react@17,react-dom@17,pixi.js@6",
"@lukeed/uuid": "https://esm.sh/@lukeed/[email protected]"
},
"compilerOptions": {
"checkJs": true,
"lib": ["dom", "dom.iterable", "esnext"]
Expand Down
20 changes: 6 additions & 14 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,7 @@ visualization with ``hg.Viewconf.locks()``.
Multivec Files
---------------

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.

.. code-block:: javascript

%%javascript

require(["https://unpkg.com/higlass-multivec/dist/higlass-multivec"],
function(hglib) {

});

Create the multivec and output file:
To view multivec files, create the multivec and output file:

.. code-block:: python

Expand All @@ -84,7 +73,8 @@ Create the multivec and output file:
)


Create the viewer:
Create the viewer. The `horizontal-stacked-bar` track is a plugin track so we
have to pass in its url so higlass knows where to load it.

.. code-block:: python

Expand All @@ -93,7 +83,9 @@ Create the viewer:
ts = multivec(output_file)
view = hg.view(
hg.track("top-axis", height=20),
ts.track("horizontal-stacked-bar", height=50),
ts.track("horizontal-stacked-bar", height=50,
plugin_url="https://unpkg.com/higlass-multivec/dist/higlass-multivec"
),
)
view.domain(x=[0, 1000000])

Expand Down
8 changes: 2 additions & 6 deletions docs/higlass_theme/static/higlass.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,8 @@ a:active {

pre, tt, code {
font-family:
"Roboto Mono",
"Consolas",
"Menlo",
"Deja Vu Sans Mono",
"Bitstream Vera Sans Mono",
monospace;
"Roboto Mono", "Consolas", "Menlo", "Deja Vu Sans Mono",
"Bitstream Vera Sans Mono", monospace;
overflow: scroll;
}

Expand Down
1 change: 1 addition & 0 deletions src/higlass/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"viewport-projection-horizontal": "top",
"vertical-chromosome-labels": "left",
"vertical-gene-annotations": "left",
"sequence-logo": "top",
}

datatype_default_track = {
Expand Down
2 changes: 1 addition & 1 deletion src/higlass/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def view(
else:
position = utils.track_default_position.get(track.type)
if position is None:
raise ValueError("No default track type")
raise ValueError(f"No position for track type: {track.type}")

data[position].append(track)

Expand Down
4 changes: 2 additions & 2 deletions src/higlass/widget.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as hglib from "https://esm.sh/higlass@1.13?deps=react@17,react-dom@17,pixi.js@6";
import { v4 } from "https://esm.sh/@lukeed/uuid@2.0.1";
import * as hglib from "higlass";
import { v4 } from "@lukeed/uuid";

/** @import { HGC, PluginDataFetcherConstructor, GenomicLocation, Viewconf, DataFetcher} from "./types.ts" */

Expand Down