Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

How to convert .continuous format to flat binary for using in Klusta #85

Open

Description

@saman-abbaspoor

Hello everyone,

We are using a 64 channel probe for recording and the data is stored in .continuous format. Each channel has a separate file. For spike sorting, I would like to convert the .continuous files to flat binary .dat for use in Klusta. Is there any script for such a purpose?

I would appreciate if you can give me instruction on how to proceed.

Activity

  1. jsiegle commented on Feb 25, 2020

    @jsiegle
    Member

    Hi! This is straightforward to do using the Python 3 OpenEphys.py module:

    from OpenEphys import loadFolderToArray
    import numpy as np
    import os
    
    directory = '<path_to_continuous_files>'
    data = loadFolderToArray(directory, dtype=np.int16)
    data.tofile(os.path.join(directory, 'continuous.dat'))
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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions