filterClusters: Extract subset of clusters

Description Usage Arguments Value Examples

View source: R/local_correlations.R

Description

Extract subset of clusters based on entries in chroms and clusters

Usage

1
filterClusters(treeListClusters, clustInclude)

Arguments

treeListClusters

from createClusters()

clustInclude

data.frame from retainClusters() indcating which clusters to include

Value

epiclustDiscreteList of specified clusters

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
library(GenomicRanges)

data('decorateData')

# Evaluate hierarchical clustering
treeList = runOrderedClusteringGenome( simData, simLocation ) 

# Choose cutoffs and return clusters
treeListClusters = createClusters( treeList )

# Evaluate score for each cluster
clstScore = scoreClusters(treeList, treeListClusters )

# Retain clusters that pass this criteria
clustInclude = retainClusters( clstScore, "LEF", 0.30 )

# get retained clusters
treeListClusters_filter = filterClusters( treeListClusters, clustInclude)

GabrielHoffman/decorate documentation built on Aug. 8, 2019, 1:48 p.m.