Skip to contents

Extract subset of data points

Usage

getSubset(fit, query)

# S4 method for epiclust,GRanges
getSubset(fit, query)

# S4 method for epiclustList,GRanges
getSubset(fit, query)

Arguments

fit

epiclust or epiclustList object

query

GenomicRanges object of which data points to retain

Value

epiclust or epiclustList object

Examples

library(GenomicRanges)

data('decorateData')

# Evaluate hierarchical clustering
treeList = runOrderedClusteringGenome( simData, simLocation ) 
#> 
Evaluating:chr20          
#> 

# extract subset of data after clustering 
res = getSubset( treeList, simLocation[1:10])