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

Issues when reproducing the Main Guide #176

Open
wgmao opened this issue Jan 23, 2025 · 1 comment
Open

Issues when reproducing the Main Guide #176

wgmao opened this issue Jan 23, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@wgmao
Copy link

wgmao commented Jan 23, 2025

Thank you for your help resolving the earlier issue #161. I have updated bento toolkit to the latest version 2.1.4.post2 and I tried to run through the main guide tutorial (https://bento-tools.readthedocs.io/en/latest/tutorial_gallery/Main_Guide.html) as a start. It went pretty well for the first half of the tutorial but failed at the step calling the flux function.

res = 0.1
bt.tl.flux(sdata, method="radius", res=res, recompute=True)

The function stuck unless you interrupted, and it didn't quite finish. The error message can be found below.

Traceback (most recent call last): File "<string>", line 1, in <module> 
File "~/miniconda3/envs/Bento/lib/python3.10/multiprocessing/spawn.py", line 116, in spawn_main exitcode = _main(fd, parent_sentinel) 
File "~/miniconda3/envs/Bento/lib/python3.10/multiprocessing/spawn.py", line 125, in _main prepare(preparation_data) 
File "~/miniconda3/envs/Bento/lib/python3.10/multiprocessing/spawn.py", line 236, in prepare _fixup_main_from_path(data['init_main_from_path']) 
File "~/miniconda3/envs/Bento/lib/python3.10/multiprocessing/spawn.py", line 287, in _fixup_main_from_path main_content = runpy.run_path(main_path, 
File "~/miniconda3/envs/Bento/lib/python3.10/runpy.py", line 289, in run_path return _run_module_code(code, init_globals, run_name, 
File "~/miniconda3/envs/Bento/lib/python3.10/runpy.py", line 96, in _run_module_code _run_code(code, mod_globals, init_globals, 
File "~/miniconda3/envs/Bento/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "~/subcellular/bento_toy.py", line 62, in <module> bt.pl.flux(sdata_crop, res=res, ax=ax) 
File "~/miniconda3/envs/Bento/lib/python3.10/site-packages/bento/plotting/_utils.py", line 34, in wrapper plot_func(*args, **kwds) 
File "~/miniconda3/envs/Bento/lib/python3.10/site-packages/bento/plotting/_utils.py", line 63, in wrapper plot_func(*args, **kwds) File "~/miniconda3/envs/Bento/lib/python3.10/site-packages/bento/plotting/_plotting.py", line 437, in flux _raster( 
File "~/miniconda3/envs/Bento/lib/python3.10/site-packages/bento/plotting/_layers.py", line 104, in _raster points = get_points(sdata, points_key=points_key, astype="pandas", sync=True) 
File "~/miniconda3/envs/Bento/lib/python3.10/site-packages/bento/_utils.py", line 100, in get_points raise ValueError(f"Points key {points_key} not found in sdata.points") 
ValueError: Points key cell_boundaries_raster not found in sdata.points

I debugged a little bit and sdata.points.keys() only included transcripts without cell_boundaries_raster inside the function at certain points, though the input sdata to the bt.tl.flux function indeed includes both transcripts and cell_boundaries_raster.

@ckmah ckmah self-assigned this Feb 7, 2025
@ckmah ckmah added the bug Something isn't working label Feb 7, 2025
@ckmah
Copy link
Collaborator

ckmah commented Feb 7, 2025

Thank you for reporting the bug @wgmao, that's not good! I will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants