annotate_cross: Annotate registered crosses with either appetitive or...

View source: R/cross.R

annotate_crossR Documentation

Annotate registered crosses with either appetitive or aversive behavior

Description

Annotate registered crosses with either appetitive or aversive behavior

Usage

annotate_cross(
  cross_data,
  event_data,
  treatment,
  type = c("appetitive", "aversive")
)

Arguments

cross_data

data.frame where each row is an exit, defined by region_id, t and side

event_data

data.frame where each row is an event, defined by stimulus, t_start t_end, side

treatment

Name of a treatment matching a treatment in the corresponding field of event_data

type

type of event. Either appetitive, which makes the PI increase when the fly exits the decision zone towards the event, and aversive, if the PI should decrease in that case

Value

data.frame of crosses happening during some event and with annotated type


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