Skip to content

How to select only wideband channels in Plexon #3196

Description

@h-mayorquin

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:

from pathlib import Path
from spikeinterface.extractors import read_plexon

file_path = f"your_plexon_file_path"
stream_id = "0" # This corresponds to wideband and filtered signals
recording = read_plexon(file_path=file_path, stream_name="WB-Wideband")
channel_ids = recording.get_channel_ids()
wide_band_channel_ids = [id for id in channel_ids if "WB"  in id]
wide_band_recording = recording.select_channels(channel_ids=wide_band_channel_ids)
wide_band_recording

This will give you the solution.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

extractorsRelated to extractors modulequestionGeneral question regarding SI

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions