getFeaturesInCluster: Get feature names in selected cluster

Description Usage Arguments Value Examples

View source: R/local_correlations.R

Description

Get feature names in selected cluster given chrom and clusterid

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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")

GabrielHoffman/decorate documentation built on Aug. 24, 2019, 3:56 a.m.