center_dataset: Center the trace of movement along x axis so x=0 is set at...

View source: R/tracker.R

center_datasetR Documentation

Center the trace of movement along x axis so x=0 is set at the center of the chamber Estimating the center via Computer Vision is very costly because the center does not look similar across chambers (some chambers are wider than others, etc) For that reason, if you as user wish maximum accuracy, you should run the midline-detector/main.py script, available here https://github.com/shaliulab/midline-detector like so: python main <–experiment-folder EXPERIMENT_FOLDER>

Description

Center the trace of movement along x axis so x=0 is set at the center of the chamber Estimating the center via Computer Vision is very costly because the center does not look similar across chambers (some chambers are wider than others, etc) For that reason, if you as user wish maximum accuracy, you should run the midline-detector/main.py script, available here https://github.com/shaliulab/midline-detector like so: python main <–experiment-folder EXPERIMENT_FOLDER>

Usage

center_dataset(experiment_folder, tracker_data, infer = FALSE)

Arguments

experiment_folder

Path to folder containing IDOC results .csv files

tracker_data

IDOC tracker dataset where every row captures the position of one animal at one timepoint

infer

If false, read coords of roi centers from ROI_CENTER file otherwise estimate based on fly behavior


shaliulab/idocr documentation built on June 1, 2025, 4:59 p.m.