displace: Add spatial displacement per frame for each track object

Description Usage Arguments Value Examples

View source: R/track.R

Description

Add spatial displacement per frame for each track object

Usage

1
2
displace(population, strata, x_var = "Location_Center_X",
  y_var = "Location_Center_Y", t_var = "Metadata_timePoint")

Arguments

population,

data frame storing single cell data

strata,

column name storing the track label

x_var

variable name / columne name used for x-coordinates

y_var

variable name / columne name used for y-coordinates

t_var

variable name / columne name used for time coordinates

Value

displacement

Examples

1
2
3
4
5
6
7
 data <- tibble::tibble(
   Metadata_timePoint = c(1:5),
   Location_Center_X = c(1, 2, 3, 4, 5),
   Location_Center_Y = c(1, 1, 1, 1, 1),
   TrackObjects_Label = c(rep(1, 5))
 )
 tracks <- migrationminer::displace(data,"TrackObjects_Label")

cells2numbers/neutrominer documentation built on May 3, 2019, 9:04 p.m.