buzsakilab / buzcode

Code for internal lab sharing - polishing has started but is by no means complete
http://www.buzsakilab.com/
GNU General Public License v3.0
119 stars 127 forks source link

.xml and .lfp #413

Closed farazmoradi closed 2 years ago

farazmoradi commented 2 years ago

Hi, I wanted to know how can I produce .XML and .LFP file for my own dataset to run the codes?

dlevenstein commented 2 years ago

Hm - if your data was not collected in neurosuite (http://neurosuite.sourceforge.net), I'm not sure there's an easy tool to do this. Anyone else aware of one?

brendonw1 commented 2 years ago

@farazmoradi You can make .xml files using some tools in here: https://github.com/buzsakilab/buzcode/tree/master/preprocessing/metadata

LFP is a data type for voltage traces - same as .dat specified here http://neuroscope.sourceforge.net/UserManual/data-files.html

You'd have to generate that from your own data (maybe take out headers, etc)

farazmoradi commented 2 years ago

Thank you very much

EspeHope commented 2 years ago

I need help converting .dat file from Neuroscope to a file I could read on MATLAB. Any guidance?

dlevenstein commented 2 years ago

See Brendon's answer above for creating the .xml. You can use bz_LFPfromDat to make a .lfp file that can then be loaded into Matlab with bz_GetLFP