Skip to contents

Get feature names in selected cluster given chrom and clusterid

Usage

getFeaturesInCluster(treeListClusters, chrom, clustID, id)

Arguments

treeListClusters

from createClusters()

chrom

chromosome name of cluster

clustID

cluster identifier

id

clustering parameter identifier

Value

array of feature names

Examples

library(GenomicRanges)

data('decorateData')

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

# Choose cutoffs and return clusters
treeListClusters = createClusters( treeList, method='meanClusterSize', meanClusterSize = 50 )
#> Method:meanClusterSize

# Find chromsome and cluster of peak_204
getFeaturesInCluster( treeListClusters, "chr20", 3, "50")
#>  [1] "peak_100" "peak_101" "peak_102" "peak_103" "peak_104" "peak_105"
#>  [7] "peak_106" "peak_107" "peak_108" "peak_109" "peak_110" "peak_111"
#> [13] "peak_112" "peak_113" "peak_114" "peak_115" "peak_116" "peak_117"
#> [19] "peak_118" "peak_119" "peak_120" "peak_121" "peak_122" "peak_123"
#> [25] "peak_124" "peak_125"