Learn R Programming

celltrackR (version 1.2.1)

stepPairs: 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)

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.

Arguments

X

a tracks object

filter.steps

optional: a function used to filter steps on. See examples.

Examples

Run this code
## 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 )

Run the code above in your browser using DataLab