Open ddepierre opened 1 year ago
You probably need to allow docker run as a non-root user. Have you tried this?
https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
Ok thanks, it seems to work better but I had an other issue that seemed to come from cython:
$ higlass-manage view /tmp/sample.mcool
state True
temp_dir: /tmp/higlass-docker
Inferred filetype: cooler
Inferred datatype: matrix
Traceback (most recent call last):
File "/home/david/.local/bin/higlass-manage", line 8, in <module>
sys.exit(cli())
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/david/.local/lib/python3.10/site-packages/higlass_manage/view.py", line 157, in view
from higlass.client import Track, View, ViewConf
File "/home/david/.local/lib/python3.10/site-packages/higlass/__init__.py", line 3, in <module>
from .server import Server
File "/home/david/.local/lib/python3.10/site-packages/higlass/server.py", line 5, in <module>
import cytoolz as toolz
File "/home/david/.local/lib/python3.10/site-packages/cytoolz/__init__.py", line 3, in <module>
from .functoolz import *
ImportError: /home/david/.local/lib/python3.10/site-packages/cytoolz/functoolz.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send
So I updated cython as suggested here https://github.com/Toblerity/Fiona/issues/1043, which may be incompatible with cooler but it allows me to open an higlass instance and visualise the sample.cool.
pip install --upgrade cytoolz
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: cytoolz in /home/david/.local/lib/python3.10/site-packages (0.10.1)
Collecting cytoolz
Downloading cytoolz-0.12.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 7.7 MB/s eta 0:00:00
Requirement already satisfied: toolz>=0.8.0 in /home/david/.local/lib/python3.10/site-packages (from cytoolz) (0.12.0)
Installing collected packages: cytoolz
Attempting uninstall: cytoolz
Found existing installation: cytoolz 0.10.1
Uninstalling cytoolz-0.10.1:
Successfully uninstalled cytoolz-0.10.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
cooler 0.8.11 requires cytoolz<0.11, but you have cytoolz 0.12.1 which is incompatible.
Successfully installed cytoolz-0.12.1
However, higlass-manage browse command does not seem to exist. So I could open the app with http://localhost:8989/app, find my track in the list, but can't visualise it (.cool file, 10kb res). I could visualise however public data listed but this would quite, even after increase docker memory limits https://www.thorsten-hans.com/limit-memory-for-docker-containers/ ( I guess it could change something but not sure, I'm super new to docker)
Also, can you confirm higlass is the right tool for a fast and smooth exploration Hi-C data in .cool or .mcool format on the fly, like IGV is for other -seq ? I was used to work with .hic file from Juicer tools, and visualisation with Juicebox is actually quite fast, even at high res while higlass seems lagging a lot. Would it be faster running through python/jupyter notebook ?
Thanks for your support, David
So I could open the app with http://localhost:8989/app, find my track in the list, but can't visualise it (.cool file, 10kb res).
HiGlass requires a multi-res cooler file. To go from single resolution to multires is easy: cooler zoomify my.cool
.
Hard to say if higlass is the right tool. It's a tool that some people like and others don't. As you said, Juicer works well as well. The main factor that affects higlass performance is the resolutions that are present in your mcool file. If you use cooler zoomify
you'll get the best performance.
Dear higlass team,
I followed instructions to install higlass-manage: Prerequisites:
Docker installed following https://docs.docker.com/desktop/install/ubuntu/ and I can launch Docker desktop
Higlass is installed with pip install higlass-manage
But when I try to launch higlass, I hav the following errors:
Could you help me and tell me what did I miss ? Thanks! David