filterTracks: Filter track data.frame

Description Usage Arguments Value

View source: R/miscellaneous.R

Description

Filters a track data.frame according to the parameters set.

Usage

1
filterTracks(track_df, n_cells = 100, condition = NULL, cell_line = NULL)

Arguments

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

n_cells

Numeric value. The number of cells the resulting data.frame contains.

condition

Character vector. The conditions to be kept.

cell_line

Character vector. The cell lines to be kept.

Value

A filtered track data.frame


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