question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WaveformExtractor.run_extract_waveforms has to run on all units

See original GitHub issue

Hi,

I want to extract the waveforms of multiple units, my understanding is to use the WaveformExtractor, set the parameters, and run run_extract_waveforms(). Except I’m not seeing a parameter to give which unit ids I want to extract, which means I need to extract the waveforms of all the units (which seems like a potential waste of time, and a lot of writing to disk when using max_spikes_per_unit=None).

In my use case, it wrote 298.7 GB to the disk (taking a few minutes) when extracting all of the waveforms (96 units) when I actually was only interested in 3 of them …

Is it made like this on purpose? Or is it something that needs to be added?

Thanks, Drade

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
DradeAWcommented, Oct 26, 2021

Or you create a sub sorting with sorting.select_units and run another waveform extractor on it. sounds easier no ?

It’s easier if I only need a subset of units and that’s all. But often, I need to get the waveforms of a subset of units, and then depending on the result get the waveforms of a different subset of units.

Being able to run run_extract_waveforms multiple times of a different subset of units while always remembering the previous results could be a really nice feature I think.

0reactions
DradeAWcommented, Jan 13, 2022

Alright I understand!

I just thought that keeping track of units already computed could improve performance in certain use cases, but maybe it’s too niche or maybe it’s just too complicated as you say.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Waveform Extractor — spikeinterface documentation
SpikeInterface provides an efficient mechanism to extract waveform snippets. The WaveformExtractor class: ... extracts all waveforms snippets for each unit.
Read more >
spikeinterface/waveform_extractor.py at master
Class to extract waveform on paired Recording-Sorting objects. Waveforms are persistent on disk and cached in memory. Parameters.
Read more >
Procedure for extracting waveforms from Plexon data
This procedure is a simple (if protracted) way of exporting waveform shape data from NeuroEXplorer into Matlab. I also suggest some (slightly inelegant)...
Read more >
Extracting waveform data from WDP files
Running pulseview.exe creates an error message, so no luck. My question: what is the easiest way to extract the waveform vectors from the...
Read more >
Trigger Handling and Waveform Feature Extraction Firmware
Next the feature extraction algorithm is run on the pedestal subtracted waveforms. As soon as waveform processing is initiated, the PacketBuilder module ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found