hlpr_create_track_list: Process Track Data.frame

Description Usage Arguments

View source: R/helper-family.R

Description

Filters the whole track data frame into it's phase-subparts and recomputes the variable dfo (= Distance from origin) if the filtered part does not belong to the phase 'before_tmt'.

To be used as input for .f in purrr::map() inside the function compileCto().

Usage

1
hlpr_create_track_list(phase, track_df)

Arguments

phase

Character value. Refers to the phase of the experiment. Valid inputs are:

'before_tmt'

Uses the data that refers to the time before the treatment.

'first_tmt'

Uses the data that refers tot the time after the treatment.

Note: This argument is ignored if the experiment set up did not include any treatment or the treatment started right from the beginning.

track_df

A data.frame in which each observation refers to a cell at a given frame and that contains the following variables:

cell_id

Character. Refers to the cell id's.

x_coords

Numeric. Refers to the cell's x-coordinates.

y_coords

Numeric. Refers to the cell's y-coordinates.

dfo

Numeric. The distances from the first position tracked. (Distance from origin).

dfpl

Numeric. The distances from the last point.

speed

Numeric. Refers to the instantaneuous speed.

afo

Numeric. The angle from the position of origin.

aflp

Numeric. The angle from the last position.

frame_num

Numeric. The frame number the observation refers to.

frame_time

Numeric. The frame number multiplied with the interval between two frames

frame_itvl

Character. The frame time combined with the intervals unit


kueckelj/celltracer documentation built on June 2, 2021, 6:37 a.m.