{"action":"closed","issue":{"url":"https://api.github.com/repos/MouseLand/Kilosort2/issues/138","repository_url":"https://api.github.com/repos/MouseLand/Kilosort2","labels_url":"https://api.github.com/repos/MouseLand/Kilosort2/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/MouseLand/Kilosort2/issues/138/comments","events_url":"https://api.github.com/repos/MouseLand/Kilosort2/issues/138/events","html_url":"https://github.com/MouseLand/Kilosort2/issues/138","id":521883011,"node_id":"MDU6SXNzdWU1MjE4ODMwMTE=","number":138,"title":"Assertion error when loading Kilosort2 output on Phy","user":{"login":"julieelie","id":8903309,"node_id":"MDQ6VXNlcjg5MDMzMDk=","avatar_url":"https://avatars3.githubusercontent.com/u/8903309?v=4","gravatar_id":"","url":"https://api.github.com/users/julieelie","html_url":"https://github.com/julieelie","followers_url":"https://api.github.com/users/julieelie/followers","following_url":"https://api.github.com/users/julieelie/following{/other_user}","gists_url":"https://api.github.com/users/julieelie/gists{/gist_id}","starred_url":"https://api.github.com/users/julieelie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julieelie/subscriptions","organizations_url":"https://api.github.com/users/julieelie/orgs","repos_url":"https://api.github.com/users/julieelie/repos","events_url":"https://api.github.com/users/julieelie/events{/privacy}","received_events_url":"https://api.github.com/users/julieelie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-11-13T00:33:08Z","updated_at":"2019-11-25T18:22:59Z","closed_at":"2019-11-25T18:22:59Z","author_association":"NONE","body":"Hello,\r\nI'm randomly getting issues when loading output data from kilosort2 to Phy, and I can't figure out what's the problem. Could anyone point me to what could cause the error I'm pasting below?\r\nIt looks like the output of Kilosort2 is not what phy is expecting in terms of number of clusters?\r\nI'm trying to spike sort long recordings from 4 tetrodes and I'm attaching [here](https://drive.google.com/drive/folders/1LnqNvIuV11ZxoJQo9Yw7iCVB5-QLzgI4) the npy and tsv files that give me the error when loading.\r\nThank you for your help!\r\nJulie\r\n\r\nHere is the error:\r\n\r\nTraceback (most recent call last): File \"/Users/elie/anaconda3/envs/phy2/bin/phy\", line 8, in <module> sys.exit(phycli()) File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/click/core.py\", line 764, in __call__ return self.main(*args, **kwargs) File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/click/core.py\", line 717, in main rv = self.invoke(ctx) File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/click/core.py\", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/click/core.py\", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/click/core.py\", line 555, in invoke return callback(*args, **kwargs) File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/click/decorators.py\", line 17, in new_func return f(get_current_context(), *args, **kwargs) File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/phy/apps/__init__.py\", line 156, in cli_template_gui template_gui(params_path, **kwargs) File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/phy/apps/template/gui.py\", line 195, in template_gui controller = TemplateController(**get_template_params(params_path), **kwargs) File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/phy/apps/base.py\", line 438, in __init__ super(TemplateMixin, self).__init__(*args, **kwargs) File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/phy/apps/base.py\", line 854, in __init__ self._set_supervisor() File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/phy/apps/template/gui.py\", line 95, in _set_supervisor super(TemplateController, self)._set_supervisor() File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/phy/apps/base.py\", line 952, in _set_supervisor context=self.context, File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/phy/cluster/supervisor.py\", line 661, in __init__ spike_clusters, spikes_per_cluster=spc, new_cluster_id=new_cluster_id) File \"/Users/elie/anaconda3/envs/phy2/lib/python3.7/site-packages/phy/cluster/clustering.py\", line 157, in __init__ assert np.all(self._spike_clusters < self._new_cluster_id) AssertionError"}}
{"actor":{"display_login":"julieelie"}}