Skip to content

Python and R script for analyzing mouse moving in behavior experiment

Notifications You must be signed in to change notification settings

hkrkizum/Tracking_behaivor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tracking_behaivor

Python and R script for analyzing mouse moving in behavior experiment

top

Getting Started

Requirement

  • Python3

    thise pacakege is requried.

    • opencv-python=4.1.0.25=pypi_0
    • numpy
    • pandas
    • Pathlib
    • thinker
    • datetime
  • R

    thise pacakege is requried.

    • sp
    • tidyverse
    • jsonlite
    • stringr

Installation

git clone https://github.com/hkrkizum/Tracking_behaivor.git

Preparation

Tracking_behaivor/
  ├─ .git/
  ├─ .gitignore
  ├─ README.md
  ├─ Videofiles/
  │   └─ test.mp4
  ├─ Setting/
  │   ├─ FileList/
  │   └─ Polygon/
  │       ├─ FileList/
  │       └─ Polygon/
  │           └─ polygon.csv
  ├─ TrackingData/
  └─ source/
     ├─ pythonfiles/
     │   ├─ Video_1file.py
     │   └─ CoreCode.py
     └─ Rfiles

Make Mask Poligon setting file

  • 1st col: Number
  • 2nd col: X
  • 3rd col: Y

→ put in Setting/

Base

Usage

A. 1 file tracking

  1. Run tracking
python .\source\pythonfiles\Video_1file.py
  • 1-1. pop up. when you select OK, you can choose video file on GUI.

  • 1-2. when you select OK, you can choose CSV file on GUI.

  • 1-3. Set threthold parameter. If you set blank, 35 will be used as default.

  • 1-4. Analized data will be saved in TrackingData/ automatically.

About

Python and R script for analyzing mouse moving in behavior experiment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published