getClusterRanges: Get genome coordinates for each cluster

Description Usage Arguments Value Examples

View source: R/extractCorrelationScores.R

Description

Get genome coordinates for each cluster as a GRanges object

Usage

1
getClusterRanges(gRanges, clustList, verbose = TRUE)

Arguments

gRanges

GenomciRanges corresponding to the rows of epiSignal

clustList

list of cluster assignments

verbose

write messages to screen

Value

GRanges object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library(GenomicRanges)

# load data
data('decorateData')

# Evaluate hierarchical clustering
# adjacentCount is the number of adjacent peaks considered in correlation
treeList = runOrderedClusteringGenome( simData, simLocation)

# Choose cutoffs and return cluster
treeListClusters = createClusters( treeList, method = "meanClusterSize", meanClusterSize=c( 10, 20, 30, 40, 50) )

# Get start and end coordinates for each cluster
# cluster name is parameter:chrom:cluster
getClusterRanges( simLocation, treeListClusters)

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