stepPairs {celltrackR} | R Documentation |
Find Pairs of Steps Occurring at the Same Time
Description
Find cell indices and timepoints where these cells both have a step.
Usage
stepPairs(X, filter.steps = NULL)
Arguments
X |
a tracks object |
filter.steps |
optional: a function used to filter steps on. See examples. |
Value
A dataframe with three columns: two for the indices of cellpairs that share a step, and one for the timepoint at which they do so.
Examples
## Find all pairs of steps in the T cell data that displace at least 2 microns.
pairs <- stepPairs( TCells, filter.steps = function(t) displacement(t) > 2 )
[Package celltrackR version 1.2.0 Index]