Comments (18)
@mhhennig, super excited to experiment with SpikeInterface; I think it will yield very useful information for the field, so, thanks!
I've experienced similar issues to those outlined by @WeissShahaf. I have successfully installed SpikeInterface. The individual sorters that are python-based do install with pip or conda in terminal. However, they aren't able to be called, as an example (assuming a recording is properly loaded):
import spikesorters as ss (or even import spikeinterface.sorters as ss)
sorting_TDC = ss.run_tridesclous(recording, output_folder='tmp_TDC')
It also appears that the installed_sorters() function returns an empty array, while the available_sorters() returns that list (as it should, when I look in the sorterlist.py file). My intuition is that the sorters are being installed somewhere that the sorter files cannot find when they're called. I will keep tinkering to try to fix this locally on my machine and post if I make headway.
Not sure if this is the same issue as @WeissShahaf, but hopefully this can facilitate a solution.
from spikeinterface.
any thoughts?
from spikeinterface.
Could you describe in a bit more detail what you did? Note that for the matlab sorters you have to set an environment variable, pointing to the relevant directory. However, spykingcircus for example should work if you used pip to install. Can you run it standalone?
from spikeinterface.
Hi @alexmcclanahan
Could you update all sorters python based and all package from spikeinterface:
pip install -- upgrade spikeextractors spiketoolkit spikeorters spikecomparisons spikewidgets
pip install --upgrade spyking-circus tridesclous herdingspikes
Note that from tridesclous you should install openl (or numba) for high channel counts otherwise it will be slow.
from spikeinterface.
@samuelgarcia: thanks -- I've tried that, to no avail. It seems as if the issue on my machine is that the various BaseSorter functions are erroring out as they don't see the sorters they point to during the BaseSorter.init call within the individual sorter. I have tried installing each sorter individually on two systems, after installing SpikeInterface with the same errors both times.
I will continue trying to unravel if this is an issue on my end during off hours.
from spikeinterface.
Can you do give your pip list
?
from spikeinterface.
Sure, here it is:
pip_list.txt
from spikeinterface.
For tridesclous evrything looks fine.
What happen when you do tridesclous in a console ?
from spikeinterface.
Hi, I also have problems when executing ss.run_tridesclous,
even I have followed the installation steps from the tridesclous website.
When I type tdc in my terminal, I could launch the tridesclous GUI.
So...I'm not sure what happened to this problem.
I'm using macOS 10.14.6, python 3.7.7
Here's my PIP list.
PIP_List.txt
from spikeinterface.
Hi @MingChingChiang
Could you do this
sorting_TDC = ss.run_tridesclous(recording, output_folder='tmp_TDC', raise_error=True)
and copy/paste the error message ?
from spikeinterface.
Sure! I got these error messages:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 2, in
sorting_TDC = ss.run_tridesclous(recording, output_folder=tmp_TDC, raise_error=True)
File "/Users/Ming-Ching/Documents/Python_Project/SI/venv/lib/python3.7/site-packages/spikesorters-0.3.0-py3.7.egg/spikesorters/sorterlist.py", line 230, in run_tridesclous
return run_sorter('tridesclous', *args, **kwargs)
File "/Users/Ming-Ching/Documents/Python_Project/SI/venv/lib/python3.7/site-packages/spikesorters-0.3.0-py3.7.egg/spikesorters/sorterlist.py", line 79, in run_sorter
parallel=parallel, verbose=verbose, delete_output_folder=delete_output_folder)
File "/Users/Ming-Ching/Documents/Python_Project/SI/venv/lib/python3.7/site-packages/spikesorters-0.3.0-py3.7.egg/spikesorters/tridesclous/tridesclous.py", line 53, in init
BaseSorter.init(self, **kargs)
File "/Users/Ming-Ching/Documents/Python_Project/SI/venv/lib/python3.7/site-packages/spikesorters-0.3.0-py3.7.egg/spikesorters/basesorter.py", line 48, in init
Please install it with: \n{} """.format(self.sorter_name, self.installation_mesg)
AssertionError: This sorter tridesclous is not installed.
Please install it with:
>>> pip install https://github.com/tridesclous/tridesclous/archive/master.zip
More information on tridesclous at:
* https://github.com/tridesclous/tridesclous
* https://tridesclous.readthedocs.io
from spikeinterface.
what happen if you do
import tridesclous
in ipython ?
from spikeinterface.
It returns:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
import tridesclous
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'tridesclous'
I'll try reinstalling my iPython into my virtualenv again to see whether I can fix the problem...
from spikeinterface.
Very strange that you have it in the pip list but not being able to import.
Which method did you used for installing tridesclous pip install tridesclous
?
from spikeinterface.
Yes, I used pip install tridesclous for installation.
The other strange thing is that after I created a new environment with python==3.7.6 and reinstall everything, including spikeinterface and tridesclous, everything just worked fine.
Not sure whether the python version has such strong impacts or not...
But at least I learned that avoid using python 3.7.7 or higher version for spikeinterface might be a better option.
Very strange that you have it in the pip list but not being able to import.
Which method did you used for installing tridesclouspip install tridesclous
?
from spikeinterface.
Thank you.
This is indeed very important feedback.
I will check.
from spikeinterface.
So....this issue was never solved nor closed, right? Any developments? I have a similar problem...Thx for any help.
from spikeinterface.
So....this issue was never solved nor closed, right? Any developments? I have a similar problem...Thx for any help.
The specific issue for tridesclous should be solved. You can pip install --upgrade tridesclous
to get version 1.6.1
from spikeinterface.
Related Issues (20)
- [Feature request] Add return_scaled option for spikeinterface.core.write_binary_recording HOT 6
- Artifact removal average HOT 8
- Documentation search broken since Sphinx v7 upgrade
- Kilosort 4 error: Unable to allocate 117. TiB for an array with shape (4002249, 4002249) HOT 8
- Bug report - incomplete replacing of `output_folder` with `folder` in `run_sorter_container` HOT 2
- Error in sorting after SI update: TypeError: unsupported operand type(s) for /: 'NoneType' and 'str' HOT 3
- TypeError: unsupported operand type(s) for /: 'str' and 'str' HOT 5
- Issue with reading intan .rhs file HOT 3
- Spike amplitude data for multi-segments is incorrect HOT 1
- feature request: bad channel exclusion from common_reference function HOT 4
- Is there a widget for plotting the 'peak localisation'? HOT 5
- Numpy and Numba do not give exactly the same output in unit test environment HOT 3
- Why does the spike amplitude shrink to single digits after preprocessing? HOT 5
- whiteningRange in external sorter Kilosort2_5 HOT 2
- A detailed guide on preprocessing HOT 2
- Tridesclous2: spike sorting failed
- Loading Probes in Kilosort Using .xml File
- Only one cluster survives final clustering with KS4 HOT 3
- "Too many values to unpack" when using KS4 version 4.0.11 HOT 5
- Cannot delete/load spike_locations when templates is missing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spikeinterface.