Skip to content

TdtRecordingExtractor not reading signal streams correctly for multi-block experiment #1882

Open

Description

@weiglszonja

This experiment from @JBFord has 3 signal streams with mult-block (10 blocks) setup, the reader TdtRawIO can parse the header but TdtRecordingExtractor returns empty list of times and traces, sampling frequency is 1, the data type is int.
The data for one of the blocks look like https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/src/master/tdt/aep_05/Block-1 but also have multiple SEV files like in https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/src/master/tdt/dataset_1_single_block.

@JuliaSprenger have you seen similar before with multiple data streams and multiple block example?

Activity

  1. added
    bug
    extractors
    on Jul 27, 2023
  2. JuliaSprenger commented on Aug 3, 2023

    @JuliaSprenger
    Contributor

    Hi @weiglszonja,
    yes, I have seen this with some other datasets already. The base of the issue is that the TdT format comes in many different flavours and it seems not all streams are picked up correctly yet for all of them. I guess your issue is the same as NeuralEnsemble/python-neo#1286 ?

  3. M-Hisham commented on Mar 13, 2025

    @M-Hisham

    Hello, Thank you very much for the great work

    I have similar issue. We are working on 128 channels, and each trial contains 128 sev files that are not loaded. it shows the correct number of channels, but the type, samples and size it not correct, and simply empty.
    I am using the function by passing one file inside the folder. it can load all data for streams, except the one stream saved in the sev files.

    Image

    Image

    The documentation for the TDT python package can read it correctly
    https://www.tdt.com/docs/sdk/offline-data-analysis/offline-data-python/

    is there a way to pass loaded data to spikeInterface directly?
    I have been looking at issue #2897, but I couldn't resolve the problem.

    I appreciate your support

  4. zm711 commented on Mar 18, 2025

    @zm711
    Member

    @M-Hisham what does the data structure look like? Does the tdt package give you the option to write to another format (e.g. openephys?)

  5. M-Hisham commented on Mar 19, 2025

    @M-Hisham

    @zm711
    Thanks for your help
    I have uploaded a trial for my data in the original TDT format here

    the sev files stream is named as "RSn1"

    The main data we are interested in is in the SEV files, each file contain the data stream for one channel.
    The folder size is around 1GB, sorry for that, but I wasn't sure if loading the data correctly would still work with less channels.

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

    bugextractors

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions