Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

higlass-manage browser #60

Open
faryabib opened this issue Jun 4, 2020 · 6 comments
Open

higlass-manage browser #60

faryabib opened this issue Jun 4, 2020 · 6 comments

Comments

@faryabib
Copy link

faryabib commented Jun 4, 2020

I'm trying to follow HiGlass documentation to locally setup HiGlass on a workstation with a static IP address, then use my desktop to view the data. "higlass-manage ingest" moves the test file sample.mcool to the default directory /tmp/higlass-docker/sample.mcool on the workstation. From the desktop, I can load the HiGlass browser (Workstation_IP:8888/app), and view the list of public data sets, but not the local data sample.mcool.

Also following the higlass-manage usage fails as shown here:

wget https://s3.amazonaws.com/pkerp/public/hic-resolutions.cool
sudo higlass-manage view hic-resolutions.cool
state True
temp_dir: /tmp/higlass-docker
Inferred filetype: cooler
Inferred datatype: matrix
state True
Inferred datatype: matrix
state True
state True
name_text:
hg_name: default
command: python higlass-server/manage.py ingest_tileset --filename /tmp/hic-resolutions.cool --filetype cooler --datatype matrix --uid Bz-gWBMMR1SMa6uvx6h9HA
Traceback (most recent call last):
File "/usr/local/bin/higlass-manage", line 8, in
sys.exit(cli())
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/higlass_manage/view.py", line 157, in view
from higlass.client import Track, View, ViewConf
ModuleNotFoundError: No module named 'higlass'

@pkerpedjiev
Copy link
Member

pkerpedjiev commented Jun 5, 2020

Hi! Could you try running the following?

pip install higlass-python
higlass-manage view hic-resolutions.cool

@faryabib
Copy link
Author

faryabib commented Jun 5, 2020

Thanks. It worked. But, I thought the whole idea of having a container is to not install packages separately.

@pkerpedjiev
Copy link
Member

pkerpedjiev commented Jun 5, 2020 via email

@bskubi
Copy link

bskubi commented Nov 6, 2023

I was having a similar issue:

higlass-manage view demo.contact_matrix.cool
Pulling latest image...
done
Data directory: /home/benjamin/hg-data
Temp directory: ()
Starting... default 8989
Docker started: higlass-manage-container-default
sending request 1
Waiting to start (tilesets)...
sending request 2
Waiting to start (tilesets)...
sending request 3
Waiting to start (tilesets)...
sending request 4
Non 200 status code returned (502), waiting...
sending request 5
Non 200 status code returned (502), waiting...
sending request 6
Non 200 status code returned (502), waiting...
sending request 7
Non 200 status code returned (502), waiting...
sending request 8
Non 200 status code returned (502), waiting...
sending request 9
public_data: True
Replaced js file
Started
Inferred filetype: cooler
Inferred datatype: matrix
state True
Inferred datatype: matrix
state True
state True
name_text:
hg_name: default
command: python higlass-server/manage.py ingest_tileset --filename /tmp/demo.contact_matrix.cool --filetype cooler --datatype matrix --uid dNmr82z4TOuMzOQYf7yGDQ
Traceback (most recent call last):
File "/home/benjamin/anaconda3/bin/higlass-manage", line 8, in
sys.exit(cli())
^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/higlass_manage/view.py", line 157, in view
from higlass.client import Track, View, ViewConf
ModuleNotFoundError: No module named 'higlass'

After running pip install higlass-python I tried viewing my .cool file again:

higlass-manage view demo.contact_matrix.cool
state True
temp_dir: /tmp/higlass-docker
Inferred filetype: cooler
Inferred datatype: matrix
Traceback (most recent call last):
File "/home/benjamin/anaconda3/bin/higlass-manage", line 8, in
sys.exit(cli())
^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/benjamin/anaconda3/lib/python3.11/site-packages/higlass_manage/view.py", line 157, in view
from higlass.client import Track, View, ViewConf
ModuleNotFoundError: No module named 'higlass.client'

Any idea where this error is coming from?

@Gon1976
Copy link

Gon1976 commented May 24, 2024

I have the same error after install higlass-python
higlass-manage view hic-resolutions.cool
state True
temp_dir: /tmp/higlass-docker
Inferred filetype: cooler
Inferred datatype: matrix
Traceback (most recent call last):
File "/home/ggreif/miniconda3/envs/snakemake/bin/higlass-manage", line 8, in
sys.exit(cli())
^^^^^
File "/home/ggreif/miniconda3/envs/snakemake/lib/python3.12/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ggreif/miniconda3/envs/snakemake/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/ggreif/miniconda3/envs/snakemake/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ggreif/miniconda3/envs/snakemake/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ggreif/miniconda3/envs/snakemake/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ggreif/miniconda3/envs/snakemake/lib/python3.12/site-packages/higlass_manage/view.py", line 157, in view
from higlass.client import Track, View, ViewConf
ModuleNotFoundError: No module named 'higlass.client'

@Thepupa7
Copy link

I have the same problem ModuleNotFoundError: No module named 'higlass.client' when i use higlass-manage view .cool. Did you solve it?😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants