selectSteps {celltrackR}R Documentation

Get Single Steps Starting at a Specific Time from a Subset of Tracks

Description

Obtain all single steps starting at a given timepoint t from a subset of tracks of interest.

Usage

selectSteps(X, trackids, t)

Arguments

X

Tracks object to obtain subtracks from

trackids

Character vector with the ids of tracks of interest

t

Timepoint at which the subtracks should start

Value

A tracks object is returned which contains all the extracted steps.

See Also

subtracks to extract all subtracks of a given length, prefixes to extract all subtracks of a given length starting from the first coordinate in each track, subtracksByTime to extract all subtracks of a given length starting at some fixed timepoint, and timePoints to return all timepoints occurring in the dataset.

Examples

## Get and plot all steps starting at the third timepoint in tracks 1 and 3 of
## the T cell dataset
subT <- selectSteps( TCells, c("1","5"), timePoints(TCells)[3] )
plot( subT )


[Package celltrackR version 1.2.0 Index]