You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to select only wideband channels in Plexon #3196
This question arose in neo but it has a clear solution in spikeinterface.
The problem is that neo has both wide band and filtered signals in the same stream but users usually want the stream band. I am writing the solution here for @AbhiSwamiUConn as this is a proper spikeinterface issue:
frompathlibimportPathfromspikeinterface.extractorsimportread_plexonfile_path=f"your_plexon_file_path"stream_id="0"# This corresponds to wideband and filtered signalsrecording=read_plexon(file_path=file_path, stream_name="WB-Wideband")
channel_ids=recording.get_channel_ids()
wide_band_channel_ids= [idforidinchannel_idsif"WB"inid]
wide_band_recording=recording.select_channels(channel_ids=wide_band_channel_ids)
wide_band_recording
Activity
AbhiSwamiUConn commentedon Jul 12, 2024
Thank you.
h-mayorquin commentedon Jul 12, 2024
Note that you will need to update spikeinterface for a version where this is merge:
#3193
That right now is main but should be included in our next 0.101 that will be coming in a week or two.
h-mayorquin commentedon Aug 15, 2024
Closing this as #3193 was merged.
h-mayorquin commentedon Aug 15, 2024
Re-opening this as I have realized that stream-ids are not stable on neo:
NeuralEnsemble/python-neo#1523
h-mayorquin commentedon Sep 18, 2024
OK, I updated the initial instructions and it should work now in the latest versions of Spikeinterface and neo.