Skip to content

CemalAkmese/behavioral_dataframe_processing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Behavioral Dataframe Processing

Overview

TODO: Include ELO Score part

  • This project helps extract and process MED-PC (https://www.med-associates.com/med-pc-v/) recording data. The overall goal is to train mice to associate a tone with a reward(sugary liquid). MED-PC records the times that the tones are played, when the mice enter/exit the port where the reward is dispensed, and the relevant metadata. The experiment is usually run with one subject for a recording that takes about a hour for multiple days. The data processing will calculate various metrics that displays or averages all the trials(each tone going off in a session and it's associated port entry/exit) for each recording session for all the subjects.

Repository Organization

  • ./jupyter_notebooks
    • Directory that has the Jupyter Notebooks to extract/process the MED-PC and the accompanying dataframes/plots that are created from it.
  • ./results
    • Directory that has a record of previous iterations of the Jupyter Notebooks
  • ./src
    • Directory that has the Python source code used in the Jupyter Notebooks. All the original functions used in the notebooks will be imported from this.

Steps To Take

Step 0: Learn how to use the Command Line

https://code.visualstudio.com/Download

  1. Before starting, you must pick a program for your Command-line interface.

  2. When editing and reading code, it is helpful to use a code editor that has features specific to programing. We recommend using Visual Studio Code.

Step 1. Clone this repository

Step 2. Create Conda Environment to Install Necessary Python libraries

TODO: Look into error with MoviePy

  • SafetyError: The package for moviepy located at /home/riwata/miniconda3/pkgs/moviepy-1.0.3-pyhd8ed1ab_0 appears to be corrupted. The path 'site-packages/moviepy/decorators.py' has an incorrect size. reported size: 3614 bytes actual size: 3608 bytes

Step 2. Turn on Jupyter Notebooks Program

  • 1 Type the command jupyter notebook --allow-root in your terminal, and then press inter
  • 1.1 If a browser window doesn't pop up with Jupyter notebooks, open up a browser window. Then copy and paste the URL given in the command line to the address bar. It will be followed by To access the notebook, open this file in a browser: and Or copy and paste one of these URLs:
    • It should have a format similar to: http://localhost:8888/?token=gsOH0vx373NRzHUmDzwX9TFzBf5Wx6czWIr1irV7ERKBLmlK
  • 2 Click on ./jupyter_notebooks in the Jupyter Notebooks GUI (Should be in the web browser)

Step 3. Run each Data Processing/Analysis Jupyter Notebooks

  • Follow the instructions to run the Jupyter Notebooks at ./jupyter_notebooks/README.MD
  • The dataframes and the plots should be saved in subdirectories in: (./jupyter_notebooks/proc)[./jupyter_notebooks/proc]

Resources

MED-PC Trans

Python library to extract data from MED-PC Recording Files

ELO Score

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.9%
  • Other 0.1%