Skip to content

Add support for multiple NcsSections - Neuralynx #959

Closed

Description

@CodyCBakerPhD

Hi there,

I'm working on converting a directory of 64 .ncs files through spikeextractors, but it errors out at these lines of the rawio code: https://github.com/NeuralEnsemble/python-neo/blob/master/neo/rawio/neuralynxrawio/neuralynxrawio.py#L535-L537

Would it be possible to extend support to use neo for this? I'm also happy to help if you can guide me through the way neo operates (first time looking this deep into the neo ecosystem).

Activity

  1. samuelgarcia commented on Mar 15, 2021

    @samuelgarcia
    Contributor

    Hi Cody,
    The format have many internal variant and sometimes there are some bugs.
    @PeterNSteinmetz is more expert than me for this format maybe you could coordinate.
    He is also make a PR than could solve your issue (I don't known):
    #957

    If you have a small file that cause the bug that could be public it would be perfect for testing.

  2. CodyCBakerPhD commented on Mar 15, 2021

    @CodyCBakerPhD
    ContributorAuthor

    It looks like that PR might provide a roundabout fix if we can just loop through the files individually - the data I'm working on may not be open access but I'll see if I can find or make something else that can break it similarly.

  3. PeterNSteinmetz commented on Mar 15, 2021

    @PeterNSteinmetz
    Contributor

    I believe that error in spikeextractors is arising because the current NeuralynxRawIO does not create proper groupings for the files.

  4. added this to the 0.10.0 milestone on Mar 18, 2021
  5. CodyCBakerPhD commented on Apr 8, 2021

    @CodyCBakerPhD
    ContributorAuthor

    TBH I've found in my own work on the Neuroscope format that filename operability is almost always safer than imposing some internal structure by dirname.

    In that regard, PR #957 does therefore provide a safer workaround for my use case, and in general is a perfectly simple solution when using these IO's through spikeextractors, since we can just form a new RecordingExtractor via the MultiChannelRecordingExtractor class.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions