Giter Club home page Giter Club logo

Comments (11)

jsiegle avatar jsiegle commented on July 3, 2024

Using load_open_ephys_binary.m, the following code should create a memory map of the .dat file, rather than loading it into memory (the 2 indicates the index of the recorded file, which is likely 1 for the AP band, and 2 for the LFP band):

D = load_open_ephys_binary(<path_to_oebin_file>, 'continuous', 2, 'mmap')

Then, you can select a range of electrodes or samples with the following line:

D.Data.Data(1).mapped(startChannel:endChannel, startSample:endSample)

Let me know if that works, and if not we can keep trying to troubleshoot!

from analysis-tools.

obsee avatar obsee commented on July 3, 2024

It's working!!!
I missed '' for the mmap. It is quite embarrassing.
Thanks.

from analysis-tools.

jsiegle avatar jsiegle commented on July 3, 2024

Glad it worked! Just keep in mind that the memory-mapped values are 16-bit integers, and must be multiplied by 0.195 in order to convert to the true sample values in microvolts. This will automatically change the data type to "double" (which takes up 4x more memory), so you should only do this on a small subset of the data at a time.

from analysis-tools.

macayladonegan avatar macayladonegan commented on July 3, 2024

I'm trying to load the 'continuous.dat' file, but I can't locate the structure.oebin file-what could have gone wrong/can I just import a standard oebin file for these recordings?

from analysis-tools.

jsiegle avatar jsiegle commented on July 3, 2024

I'm not sure what might have gone wrong in this case. But this file shouldn't change between experiments, so you can just re-use one from a previous recording.

from analysis-tools.

macayladonegan avatar macayladonegan commented on July 3, 2024

I actually can't find one from any of the recordings I've done- can you think of another work around?

from analysis-tools.

jsiegle avatar jsiegle commented on July 3, 2024

Have you been using the NPX extractor or recording directly to the Binary format?

Either way, let me know how many probes are in your experiment, and I can send you an .oebin file that will work.

from analysis-tools.

macayladonegan avatar macayladonegan commented on July 3, 2024

NPX extractor, just 1. thank you!

from analysis-tools.

jsiegle avatar jsiegle commented on July 3, 2024

Ok, try this one!

structure.oebin.zip

from analysis-tools.

macayladonegan avatar macayladonegan commented on July 3, 2024

hmm ok now I'm getting this error:
Error using load_open_ephys_binary (line 74)
Data folder not found

And it looks like the script is looking for a file called Neuropix-PXI-100.1 which I also don't have in my output from NPX extractor, did I do something wrong during the extraction?

from analysis-tools.

jsiegle avatar jsiegle commented on July 3, 2024

If the folder names are different, just replace the folder_name entries in the .oebin file to match with the names of your actual data directories. The first one is the AP Band, the second one is the LFP Band

from analysis-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.