read_pi: Read the Preference Index (PI) achieved by a fly in a trial...

View source: R/global_load.R

read_piR Documentation

Read the Preference Index (PI) achieved by a fly in a trial or set of trials Load the PI as computed by idocr (machine) and stored in a .csv file The PI will be set to NA if only aversive or appetitive exits occur, AND also if their sum is not at least min_exits n_exits will be NA if only aversive or appetitive exits occur, otherwise it will be their sum (even if under min_exits)

Description

Read the Preference Index (PI) achieved by a fly in a trial or set of trials Load the PI as computed by idocr (machine) and stored in a .csv file The PI will be set to NA if only aversive or appetitive exits occur, AND also if their sum is not at least min_exits n_exits will be NA if only aversive or appetitive exits occur, otherwise it will be their sum (even if under min_exits)

Usage

read_pi(path, roi, min_exits = 3)

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