Comments (5)
My guess is that the bottleneck is likely the function collecting spike cut-outs (both used in curation and phy export). What format is your raw data file? Also, do you apply any filters on the recording extractor?
from spikeinterface.
The raw data was acquired with Open Ephys GUI, stored in their binary format. I'm applying bandpass filtering and common mode rejection on the recording extractor, and using the cmr'd extractor for sorting, curation, phy, etc.
Is it possible to speed up the cut-out step somehow? or at least to save the cutouts in one step so they don't have to be re-computed several times?
from spikeinterface.
in spike interface there is a cache system to avoid to recompute the preprocessing chain and extractor several times waveforms snippet (very long) @alejoe91 do we have a notebook example for the cache workflow ?
from spikeinterface.
Hi @guitchounts
there are a few things you can do:
-
Cache the
recording_cmr
(VERY IMPORTANT): this dumps a binary version of your recording (in your case bandpass filtered + cmr) to a dat binary file. You can simply do:recording_cmr = se.CacheRecordingExtractor(recording_cmr, 'recording_cmr.dat')
. The process will take a few minutes, but it'll speed up everything else (otherwise each single waveforms is filtered separately later!) -
Use multiple jobs: when computing the SNR (and therefore the waveforms in the background) you can use the
n_jobs=8
(or 4-16...). This will compute waveforms and templates in parallel. Same holds for the export_to_phy. -
Note that the export to phy is slower because ALL waveforms need to be extracted to compute amplitudes and PC scores. If you are not interested in those (you'll still be able to look at templates, similarity, and cross-correlograms), you can try the to set the
compute_amplitudes=False
andcompute_pc_features=False
when calling theexport_to_phy
Hope this helps! :)
from spikeinterface.
Potprocessing efficiency issues are solved with latest releases of spiketoolkit
from spikeinterface.
Related Issues (20)
- Documentation Proposals HOT 17
- Test export is failing on full tests HOT 4
- Unify notation in ISI violations docs HOT 1
- Bug in `compute_firing_ranges` when duration of recording is smaller than default time bin_s HOT 1
- Implement a sliding z_score
- Reading in events for legacy open ephys format HOT 1
- binding issue with singularity HOT 1
- Spikeinterface cannot find singularity instance HOT 6
- Saving data in uV HOT 2
- in whiten.py, eps is too large for some datasets HOT 11
- How to remove spikes with low amplitude HOT 12
- Having trouble importing neuroexplorer file using spikeinterface extractor HOT 6
- kilosort3 on dandiset recording HOT 20
- plot_traces and ipywidget backend can not handle channel_ids HOT 1
- Pre-compute sparsity should have a `tempfolder` mode HOT 2
- NumpySorting from_dict, from_unit_dict HOT 3
- A function to generate `spikeinterface.WaveformExtractor` object from waveforms stored in an NWB file
- Tetrode Probe Group Ignores Channel Indices HOT 10
- ValueError for si.extract_waveforms() for many spikeforest datasets HOT 8
- 'spikeinterface.full' has no attribute 'plot_traces' HOT 11
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.