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 128 forks source link

process LED etc to behavior #241

Open englishdaniel opened 6 years ago

englishdaniel commented 6 years ago

to someone have an up to date function to create the behavior file? The ones I found, at least, don't seem to be creating the right format.

thanks

Dan

DavidTingley commented 6 years ago

https://github.com/buzsakilab/buzcode/tree/master/tutorials/exampleDataStructs/20170505_396um_0um_merge

unfinished, though @AntonioFR8 said he'd work on it at some point. https://github.com/buzsakilab/buzcode/blob/master/preprocessing/positionTracking/LEDTracking/bz_processConvertLED2Behav.m

I use the optitrack system with this function, https://github.com/buzsakilab/buzcode/blob/master/preprocessing/positionTracking/optitrack/bz_processConvertOptitrack2Behav.m

englishdaniel commented 6 years ago

Thanks, I was trying to use the LED one, I didn't realize it wasn't finished.

I will just go through and make it match the one in the tutorial.

Could we make bz_isBehavior tell you what is wrong, not just that it is wrong?

On Tue, Sep 11, 2018 at 4:40 PM David Tingley notifications@github.com wrote:

https://github.com/buzsakilab/buzcode/tree/master/tutorials/exampleDataStructs/20170505_396um_0um_merge

unfinished, though @AntonioFR8 https://github.com/AntonioFR8 said he'd work on it at some point.

https://github.com/buzsakilab/buzcode/blob/master/preprocessing/positionTracking/LEDTracking/bz_processConvertLED2Behav.m

I use the optitrack system with this function,

https://github.com/buzsakilab/buzcode/blob/master/preprocessing/positionTracking/optitrack/bz_processConvertOptitrack2Behav.m

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/buzsakilab/buzcode/issues/241#issuecomment-420417738, or mute the thread https://github.com/notifications/unsubscribe-auth/AfcEcRC-KkSqFz89rPzBro_TQ3JeE-Q9ks5uaB-ngaJpZM4WkJLw .

-- Daniel F. English, Ph.D. Assistant Professor Virginia Tech - School of Neuroscience Email: neurodan83@vt.edu Website: www.englishneurolab.com http://www.danenglishneuro.com

DavidTingley commented 6 years ago

We can cross check with this, https://github.com/buzsakilab/buzcode/wiki/Data-Formatting-Standards#behavior

If you see anything you'd like to add to bz_isBehavior, feel free to submit a pull request!

englishdaniel commented 6 years ago

Thanks, still figuring the github etiquette

On Tue, Sep 11, 2018, 6:25 PM David Tingley notifications@github.com wrote:

We can cross check with this, https://github.com/buzsakilab/buzcode/wiki/Data-Formatting-Standards#behavior

If you see anything you'd like to add to bz_isBehavior, feel free to submit a pull request!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/buzsakilab/buzcode/issues/241#issuecomment-420446878, or mute the thread https://github.com/notifications/unsubscribe-auth/AfcEcWa_bODYI9HDCfhLtCFvCBfeFIL-ks5uaDhHgaJpZM4WkJLw .

englishdaniel commented 6 years ago

Still not clear to me what function writes the initial .behavior file. this https://github.com/buzsakilab/buzcode/blob/master/preprocessing/positionTracking/optitrack/bz_processConvertOptitrack2Behav.m write some of the fields, but is it writing it to a pre-existing file that is created elsewhere? Or am I missing something?

On Tue, Sep 11, 2018 at 4:44 PM Daniel English englishdaniel@gmail.com wrote:

Thanks, I was trying to use the LED one, I didn't realize it wasn't finished.

I will just go through and make it match the one in the tutorial.

Could we make bz_isBehavior tell you what is wrong, not just that it is wrong?

On Tue, Sep 11, 2018 at 4:40 PM David Tingley notifications@github.com wrote:

https://github.com/buzsakilab/buzcode/tree/master/tutorials/exampleDataStructs/20170505_396um_0um_merge

unfinished, though @AntonioFR8 https://github.com/AntonioFR8 said he'd work on it at some point.

https://github.com/buzsakilab/buzcode/blob/master/preprocessing/positionTracking/LEDTracking/bz_processConvertLED2Behav.m

I use the optitrack system with this function,

https://github.com/buzsakilab/buzcode/blob/master/preprocessing/positionTracking/optitrack/bz_processConvertOptitrack2Behav.m

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/buzsakilab/buzcode/issues/241#issuecomment-420417738, or mute the thread https://github.com/notifications/unsubscribe-auth/AfcEcRC-KkSqFz89rPzBro_TQ3JeE-Q9ks5uaB-ngaJpZM4WkJLw .

-- Daniel F. English, Ph.D. Assistant Professor Virginia Tech - School of Neuroscience Email: neurodan83@vt.edu Website: www.englishneurolab.com http://www.danenglishneuro.com

-- Daniel F. English, Ph.D. Assistant Professor Virginia Tech - School of Neuroscience Email: neurodan83@vt.edu Website: www.englishneurolab.com http://www.danenglishneuro.com

DavidTingley commented 6 years ago

That is the function that creates the file. Optitrack outputs .csv files that it reads from.

DavidTingley commented 6 years ago

If you're doing LED tracking, use bz_processConvertLED2Behav.m

you can just remove the error() line. I left it there to double check the head direction calculation

englishdaniel commented 6 years ago

Thanks for clarifying, which function are you using to write the events file then?

On Wed, Sep 12, 2018 at 10:33 AM David Tingley notifications@github.com wrote:

If you're doing LED tracking, use bz_processConvertLED2Behav.m

you can just remove the error() line. I left it there to double check the head direction calculation

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/buzsakilab/buzcode/issues/241#issuecomment-420670327, or mute the thread https://github.com/notifications/unsubscribe-auth/AfcEcb17HmRa7TdR01uqA_MZH6oTcTFsks5uaRs5gaJpZM4WkJLw .

-- Daniel F. English, Ph.D. Assistant Professor Virginia Tech - School of Neuroscience Email: neurodan83@vt.edu Website: www.englishneurolab.com http://www.danenglishneuro.com

DavidTingley commented 6 years ago

Depends on the event, each detector should create one. bz_FindRipples generates it near the end. Pretty sure @dlevenstein's slow wave detector also has it built in