View source: R/local_correlations.R
getFeaturesInCluster | R Documentation |
Get feature names in selected cluster given chrom and clusterid
getFeaturesInCluster(treeListClusters, chrom, clustID, id)
treeListClusters |
from createClusters() |
chrom |
chromosome name of cluster |
clustID |
cluster identifier |
id |
clustering parameter identifier |
array of feature names
library(GenomicRanges)
data('decorateData')
# Evaluate hierarchical clustering
treeList = runOrderedClusteringGenome( simData, simLocation )
# Choose cutoffs and return clusters
treeListClusters = createClusters( treeList, method='meanClusterSize', meanClusterSize = 50 )
# Find chromsome and cluster of peak_204
getFeaturesInCluster( treeListClusters, "chr20", 3, "50")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.