selectTracks: Select Tracks by Measure Values

View source: R/functions.R

selectTracksR Documentation

Select Tracks by Measure Values

Description

Given a tracks object, extract a subset based on upper and lower bounds of a certain measure. For instance, extract all tracks with a certain minimum length.

Usage

selectTracks(x, measure, lower, upper)

Arguments

x

the input tracks.

measure

measure on which the selection is based (see TrackMeasures).

lower

specifies the lower bound (inclusive) of the allowable measure.

upper

specifies the upper bound (inclusive) of the allowable measure.

Value

A tracks object with the selected subset of tracks.

Examples

## Slower half of T cells
slow.tcells <- selectTracks( TCells, speed, -Inf, median( sapply(TCells,speed) ) )


celltrackR documentation built on March 21, 2022, 5:06 p.m.