View source: R/local_correlations.R
getFeaturesInClusterList | R Documentation |
Get feature names in selected cluster given array of chrom and cluster ids
getFeaturesInClusterList(treeListClusters, chrom, clustID, id)
treeListClusters |
from createClusters() |
chrom |
chromosome name of cluster |
clustID |
cluster identifier |
id |
clustering parameter identifier |
list of array of feature names. Query with index i as returned in list index i
library(GenomicRanges)
data('decorateData')
# Evaluate hierarchical clustering
treeList = runOrderedClusteringGenome( simData, simLocation )
# Choose cutoffs and return clusters
treeListClusters = createClusters( treeList, method='meanClusterSize', meanClusterSize = 50 )
df_cluster = data.frame( chrom = c("chr20", "chr20"),
cluster = c(3,5),
id = c("50", "50"), stringsAsFactors=FALSE )
# Find features for the clusters in df_cluster
getFeaturesInClusterList( treeListClusters, chrom=df_cluster$chrom, clustID=df_cluster$cluster, id=df_cluster$id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.