Brody-Lab / jbreda_animal_training

Repository for the ingestion, cleaning and visualization of behavioral experiments
0 stars 0 forks source link

Test and update plotting for FixationGrower #53

Closed jess-breda closed 1 month ago

jess-breda commented 1 month ago

Similar to #51, all the code was written with DMS2 in mind and will need to be adjusted for FixationGrower.

The initial steps are

Plots to make:

Over days proposed structure (bold needs to be created) rig/techsession/foodpuck -- mass -- water stage -- run time --trials perf -- perf bars -- stage side bias 3 plots inter trial stats -- time to spoke -- give type/curriculum/condition failure rates -- n pokes/trial -- min/max delta w/i date (boxplot etc) cpoke dur stats raw -- cpoke dur states relative -- max delta over days

jess-breda commented 1 month ago

Updates to the multi-day cpoke plots

polishing:

jess-breda commented 1 month ago

Did a big overhaul today (not yet committed) creating a python package for this repository.

Worked through plotting data for a single cohort and all the code is working. Had to deal with some type changes from pandas as well as path dependences

The next step here is to condense some of these function names. Specifically the wrappers with respect to multi and single day plotting.

jess-breda commented 1 month ago
conda create -n behav_viz python==3.10
conda activate behav_viz  
cd src
pip install -e . 
conda install -c conda-forge jupyterlab
conda install -c anaconda ipykernel 
python -m ipykernel install --user --name=behav_viz
jess-breda commented 1 month ago

Working on single day plots for Fixation Grower. Specifically for R012 who is in the v1 curriculum right now. Started by looking at plots that have the mode option to be settling_in or violations. This was an easy fix using settling_in_determines_fixation. Now, we need to determine the growth type. If an animal is growing each trial (e.g. not overnight), then the histogram needs to be relative to the go cue. This currently is not relative to the go cue, even they are all valid pokes and that is why the black line is occuring before the cpoke

Image

jess-breda commented 1 month ago

Working with R010, R012, R033 and R039 who are on fixationgrower with the cpoke test experiment.

Plots over days

Next steps: cpoke plots that make sense for the two curricula mentioned above! start over days and then go within a session? set a timer.

jess-breda commented 1 month ago

This issue got out of hand and started acting like main. Closing it merging and then re-opening a new one