Skip to content

Commit

Permalink
feat!: Remove higlass.fuse (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt authored Feb 12, 2025
1 parent 6f37754 commit f832176
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 795 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ docs/_build/
dist/
.venv
examples/test.mcool
*.bigWig
56 changes: 4 additions & 52 deletions examples/Examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "cfdd679e",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -14,7 +13,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "37383869",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -23,7 +21,6 @@
},
{
"cell_type": "markdown",
"id": "f5a73851",
"metadata": {},
"source": [
"## Synced heatmaps"
Expand All @@ -32,7 +29,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "ba0c9d3e",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -69,7 +65,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4b6c2629",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -80,7 +75,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1453f49f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -91,7 +85,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4432d5d1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -110,7 +103,6 @@
},
{
"cell_type": "markdown",
"id": "637bcad2",
"metadata": {},
"source": [
"## Value scale syncing"
Expand All @@ -119,7 +111,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e89a03d7",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -161,7 +152,6 @@
},
{
"cell_type": "markdown",
"id": "ef880b6c",
"metadata": {},
"source": [
"## Remote heatmaps"
Expand All @@ -170,7 +160,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4579c459",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -207,7 +196,6 @@
},
{
"cell_type": "markdown",
"id": "74b22d9c",
"metadata": {},
"source": [
"## Extract track from another view config"
Expand All @@ -216,7 +204,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "875260a4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -231,7 +218,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f22d06ae",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -244,7 +230,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "73c925a5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -257,64 +242,32 @@
},
{
"cell_type": "markdown",
"id": "0a9ad2fc",
"metadata": {},
"source": [
"## Remote bigWig tiles\n",
"The next section requires `fuse` and `simple-httpfs` to be installed"
"## Local bigWig files"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3d664bb6",
"metadata": {},
"outputs": [],
"source": [
"%pip install fusepy simple-httpfs clodius"
"!wget http://hgdownload.cse.ucsc.edu/goldenpath/hg19/encodeDCC/wgEncodeSydhTfbs/wgEncodeSydhTfbsGm12878InputStdSig.bigWig"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "0e22f81d",
"metadata": {},
"outputs": [],
"source": [
"# set up FUSE\n",
"import pathlib\n",
"\n",
"mount_dir = pathlib.Path.cwd() / \"mnt\"\n",
"\n",
"if not mount_dir.is_dir():\n",
" mount_dir.mkdir()\n",
"\n",
"# mount directory and start fuse\n",
"hg.fuse.start(mount_dir.absolute())"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4133c1c3",
"metadata": {},
"outputs": [],
"source": [
"import hg\n",
"\n",
"# get mounted path\n",
"bwpath = hg.fuse.path(\n",
" \"http://hgdownload.cse.ucsc.edu/goldenpath/hg19/encodeDCC/\"\n",
" \"wgEncodeSydhTfbs/wgEncodeSydhTfbsGm12878InputStdSig.bigWig\"\n",
")\n",
"\n",
"track = hg.bigwig(bwpath).track(\"horizontal-bar\")\n",
"hg.view(track)"
"tileset = hg.bigwig(\"wgEncodeSydhTfbsGm12878InputStdSig.bigWig\")\n",
"hg.view(tileset.track(\"horizontal-bar\"))"
]
},
{
"cell_type": "markdown",
"id": "5844a303",
"metadata": {},
"source": [
"## Local cooler files\n",
Expand All @@ -325,7 +278,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "0439622f",
"metadata": {},
"outputs": [],
"source": [
Expand Down
467 changes: 0 additions & 467 deletions examples/Fuse.ipynb

This file was deleted.

3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ dependencies = [
requires-python = ">=3.8"
urls = { homepage = "https://github.com/higlass/higlass-python" }

[project.optional-dependencies]
fuse = ["fusepy", "simple-httpfs"]

[dependency-groups]
dev = ["anywidget[dev]", "jupyterlab", "pytest", "ruff"]

Expand Down
1 change: 0 additions & 1 deletion src/higlass/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@

import higlass.tilesets as tilesets
from higlass.api import *
from higlass.fuse import fuse
from higlass.tilesets import bed2ddb, beddb, bigwig, cooler, hitile, multivec, remote
94 changes: 0 additions & 94 deletions src/higlass/fuse/__init__.py

This file was deleted.

64 changes: 0 additions & 64 deletions src/higlass/fuse/_httpfs.py

This file was deleted.

Loading

0 comments on commit f832176

Please sign in to comment.