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

Out-of-bounds error in phy #69

Closed
ZeitgeberH opened this issue May 25, 2019 · 2 comments · Fixed by #595
Closed

Out-of-bounds error in phy #69

ZeitgeberH opened this issue May 25, 2019 · 2 comments · Fixed by #595

Comments

@ZeitgeberH
Copy link

Hi,
Kilosort2 output normal npy files. But when i load them in phy, it display the list of clusters but not the wave forms. Console reported errors:
"20:20:45 [E] cli:39 An error has occurred (AssertionError):
20:20:46 [E] cli:39 An error has occurred (IndexError): index 1390009 is out of bounds for axis 1 with size 1383832"

in the .phy log, it says:
"2019-05-24 20:20:46 [D] gui_component:393 Select clusters: 2.
2019-05-24 20:20:46 [E] cli:39 An error has occurred (IndexError): index 1390009 is out of bounds for axis 1 with size 1383832
2019-05-24 20:20:46 [D] cli:42 Traceback (most recent call last):
File "/home/mil99/conda/envs/phy/lib/python3.5/site-packages/phy/gui/widgets.py", line 196, in _emit_from_js
self.emit(text_type(name), json.loads(text_type(arg_json)))
File "/home/mil99/conda/envs/phy/lib/python3.5/site-packages/phy/gui/widgets.py", line 115, in emit
return self._event.emit(*args, **kwargs)
File "/home/mil99/conda/envs/phy/lib/python3.5/site-packages/phy/utils/event.py", line 121, in emit
res.append(callback(*args, **kwargs))
File "/home/mil99/conda/envs/phy/lib/python3.5/site-packages/phy/cluster/manual/gui_component.py", line 334, in on_select
self._emit_select(cluster_ids)
File "/home/mil99/conda/envs/phy/lib/python3.5/site-packages/phy/cluster/manual/gui_component.py", line 395, in _emit_select
self.gui.emit('select', cluster_ids)
File "/home/mil99/conda/envs/phy/lib/python3.5/site-packages/phy/gui/gui.py", line 228, in emit
return self._event.emit(*args, **kwargs)
File "/home/mil99/conda/envs/phy/lib/python3.5/site-packages/phy/utils/event.py", line 121, in emit
res.append(callback(*args, **kwargs))
File "/home/mily99/conda/envs/phy/lib/python3.5/site-packages/phy/cluster/manual/views.py", line 1220, in on_select
x = self._get_feature(x_dim[i, j], spike_ids, f)
File "/home/mil99/conda/envs/phy/lib/python3.5/site-packages/phy/cluster/manual/views.py", line 1056, in _get_feature
return -1. + (2. / self.duration) * self.spike_times[spike_ids]
IndexError: index 1390009 is out of bounds for axis 1 with size 1383832"

@marius10p
Copy link
Contributor

It's likely that many other things did not work out correctly. Have you set up Kilosort2 using the Matlab GUI to make sure it is configured correctly?

Can you see templates in Phy by pressing 'w'? Did you see reasonable looking waveforms in Matlab during the optimization? Did it find a reasonable number of spikes?

@marius10p
Copy link
Contributor

This issue has become inactive. Closing.

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

Successfully merging a pull request may close this issue.

2 participants