filterTracks: Filter Tracks

Description

Extracts subtracks based on a given function.

Usage

1

Arguments

f

a function that accepts a single track as its first argument and returns a logical value (or a value that can be coerced to a locical).

x

a tracks object.

...

further arguments to be passed on to f.

Value

A tracks object containing only those tracks from x for which f evaluates to TRUE.

Examples

1
2
## Remove short tracks from the T cells data
plot( filterTracks( function(t) nrow(t)>10, TCells ) )

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.