Welcome to TomoTwin Discussions! #15
Replies: 7 comments 15 replies
-
|
Hi Thorsten, Is it possible to get Tomotwin to work on Mac m1 ? Thanks |
Beta Was this translation helpful? Give feedback.
-
|
Hi Thorsten, Great software ! Working perfectly on a Linux environment. I wanted to know if it is possible to increase the number of CPUs when running the "tomotwin_locate.py findmax" command. On a more general comment, how can we know more about the parameters we feed to the software during the different steps?
Thanks in advance, |
Beta Was this translation helpful? Give feedback.
-
|
Hey! I'm really psyched to try tomotwin, but hit a little snag: trying to load the umap embedding in napari leads to the error below. Has anybody else seen this, too? O:-) Thanks, Philipp. AttributeError Traceback (most recent call last) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/psygnal/_weak_callback.py:291, in _StrongFunction.cb(self=<psygnal._weak_callback._StrongFunction object>, args=()) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/magicgui/widgets/_function_gui.py:218, in FunctionGui.init.._disable_button_and_call() File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/magicgui/widgets/_function_gui.py:331, in FunctionGui.call(self=<FunctionGui load_umap_magic(label_layer: napari...Tomo_009-dose_filt_embeddings.tumap'))>, update_widget=False, *args=(), **kwargs={}) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/napari_tomotwin/load_umap.py:34, in load_umap_magic(label_layer=None, filename=PosixPath('Tomo_009-dose_filt_embeddings.tumap')) AttributeError: 'NoneType' object has no attribute 'opacity' The above exception was the direct cause of the following exception: EmitLoopError Traceback (most recent call last) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/psygnal/_signal.py:935, in SignalInstance.emit(self=<SignalInstance 'changed' on PushButton(value=False, annotation=None, name='call_button')>, check_nargs=False, check_types=False, asynchronous=False, *args=(False,)) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/psygnal/_signal.py:982, in SignalInstance._run_emit_loop(self=<SignalInstance 'changed' on PushButton(value=False, annotation=None, name='call_button')>, args=(False,)) EmitLoopError: calling <psygnal._weak_callback._StrongFunction object at 0x7fab70eecc10> with args=(False,) caused AttributeError: 'NoneType' object has no attribute 'opacity'. |
Beta Was this translation helpful? Give feedback.
-
|
Ah! Found it ... so the mask is necessary? |
Beta Was this translation helpful? Give feedback.
-
When does that happen? I need to reproduce it to fix it. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Thorsten, Thank you for making tomotwin! We really like it, and so far have used it succesfully on a small dataset for STA of a protein bound to liposome membranes (seems to do a good job, even though the model wasn't trained on this). My test dataset was 10 tomograms, which was manageable. We now have 180 tomograms to process - and embedding is a major bottleneck. We will try the masking outlined in the latest version. Thanks again, |
Beta Was this translation helpful? Give feedback.
-
|
Hi, File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/npe2/manifest/utils.py:260, in import_python_name(python_name='napari_tomotwin.load_umap_widget:UmapToolQt') File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/importlib/init.py:126, in import_module(name='napari_tomotwin.load_umap_widget', package=None) File :1050, in _gcd_import(name='napari_tomotwin.load_umap_widget', package=None, level=0) File :1027, in find_and_load(name='napari_tomotwin.load_umap_widget', import=) File :1006, in find_and_load_unlocked(name='napari_tomotwin.load_umap_widget', import=) File :688, in _load_unlocked(spec=ModuleSpec(name='napari_tomotwin.load_umap_widge...te-packages/napari_tomotwin/load_umap_widget.py')) File :883, in exec_module(self=<_frozen_importlib_external.SourceFileLoader object>, module=<module 'napari_tomotwin.load_umap_widget' from ...te-packages/napari_tomotwin/load_umap_widget.py'>) File :241, in _call_with_frames_removed(f=, *args=(<code object at 0x7fab30598a80, file "/...ges/napari_tomotwin/load_umap_widget.py", line 1>, {'PlotterWidget': <class 'napari_clusters_plotter._new_plotter_widget.PlotterWidget'>, 'builtins': {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, ...}, 'cached': '/home/cryosparc_user/miniconda3/envs/napari-tomo...twin/pycache/load_umap_widget.cpython-310.pyc', 'doc': None, 'file': '/home/cryosparc_user/miniconda3/envs/napari-tomo...site-packages/napari_tomotwin/load_umap_widget.py', 'loader': <_frozen_importlib_external.SourceFileLoader object>, 'name': 'napari_tomotwin.load_umap_widget', 'package': 'napari_tomotwin', 'spec': ModuleSpec(name='napari_tomotwin.load_umap_widge...te-packages/napari_tomotwin/load_umap_widget.py'), 'futures': <module 'concurrent.futures' from '/home/cryospa...n/lib/python3.10/concurrent/futures/init.py'>, ...}), **kwds={}) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/napari_tomotwin/load_umap_widget.py:9 File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/napari_tomotwin/load_umap.py:13 ImportError: cannot import name 'estimate_number_bins' from 'napari_clusters_plotter._utilities' (/home/cryosparc_user/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/napari_clusters_plotter/_utilities.py) The above exception was the direct cause of the following exception: RuntimeError Traceback (most recent call last) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/app_model/registries/_commands_reg.py:247, in CommandsRegistry.execute_command(self=<CommandsRegistry at 0x7fabb0663dc0 (164 commands)>, id='napari-tomotwin:TomoTwin clustering workflow', execute_asynchronously=False, *args=(), **kwargs={}) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/app_model/registries/_commands_reg.py:242, in CommandsRegistry.execute_command(self=<CommandsRegistry at 0x7fabb0663dc0 (164 commands)>, id='napari-tomotwin:TomoTwin clustering workflow', execute_asynchronously=False, *args=(), **kwargs={}) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/in_n_out/_store.py:934, in Store.inject_processors.._deco.._exec(*args=(), **kwargs={}) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/in_n_out/_store.py:804, in Store.inject.._inner.._exec(*args=(), **kwargs={}) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/napari/_qt/_qplugins/_qnpe2.py:344, in _toggle_or_get_widget(plugin='napari-tomotwin', widget_name='TomoTwin clustering workflow', full_name='TomoTwin clustering workflow (TomoTwin)') File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/napari/plugins/_npe2.py:130, in get_widget_contribution(plugin_name='napari-tomotwin', widget_name='TomoTwin clustering workflow') File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/npe2/manifest/contributions/_widgets.py:49, in WidgetContribution.get_callable(self=WidgetContribution(command='napari-tomotwin.Umap...omoTwin clustering workflow', autogenerate=False), _registry=None) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/npe2/manifest/utils.py:71, in Executable.get_callable(self=WidgetContribution(command='napari-tomotwin.Umap...omoTwin clustering workflow', autogenerate=False), _registry=<npe2._command_registry.CommandRegistry object>) File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/npe2/_command_registry.py:138, in CommandRegistry.get(self=<npe2._command_registry.CommandRegistry object>, id='napari-tomotwin.UmapTool') File ~/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/npe2/_command_registry.py:34, in CommandHandler.resolve(self=CommandHandler(id='napari-tomotwin.UmapTool', fu...me='napari_tomotwin.load_umap_widget:UmapToolQt')) RuntimeError: Failed to import command at 'napari_tomotwin.load_umap_widget:UmapToolQt': cannot import name 'estimate_number_bins' from 'napari_clusters_plotter._utilities' (/home/cryosparc_user/miniconda3/envs/napari-tomotwin/lib/python3.10/site-packages/napari_clusters_plotter/_utilities.py)" Any suggestions to patch this? Best, |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
👋 Welcome!
We’re using Discussions as a place to discuss ideas or questions around TomoTwin. :-)
If you have certain problems with TomoTwin we can also start here and if needed convert it into an issue.
Lets get in touch :-)
Beta Was this translation helpful? Give feedback.
All reactions