getFeaturesInClusterList: 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 array of chrom and cluster ids

Usage

1
getFeaturesInClusterList(treeListClusters, chrom, clustID, id)

Arguments

treeListClusters

from createClusters()

chrom

chromosome name of cluster

clustID

cluster identifier

id

clustering parameter identifier

Value

list of array of feature names. Query with index i as returned in list index i

Examples

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

GabrielHoffman/decorate documentation built on July 26, 2021, 12:18 a.m.