powered by
Extracts subtracks based on a given function.
filterTracks(f, x, ...)
A tracks object containing only those tracks from x for which f evaluates to TRUE.
tracks
x
f
TRUE
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).
a tracks object.
further arguments to be passed on to f.
## Remove short tracks from the T cells data plot( filterTracks( function(t) nrow(t)>10, TCells ) )
Run the code above in your browser using DataLab