Skip to contents

Get name of each cluster as parameter:chrom:cluster

Usage

getClusterNames(clustList)

Arguments

clustList

list of cluster assignments

Value

array of cluster names

Examples

library(GenomicRanges)

# load data
data('decorateData')

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

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

# Name of each cluster is parameter:chrom:cluster
getClusterNames( treeListClusters)
#>     parameter chrom cluster        name
#> 1          10 chr20       1  10_chr20_1
#> 2          10 chr20       2  10_chr20_2
#> 3          10 chr20       3  10_chr20_3
#> 4          10 chr20       4  10_chr20_4
#> 5          10 chr20       5  10_chr20_5
#> 6          10 chr20       6  10_chr20_6
#> 7          10 chr20       7  10_chr20_7
#> 8          10 chr20       8  10_chr20_8
#> 9          10 chr20       9  10_chr20_9
#> 10         10 chr20      10 10_chr20_10
#> 11         10 chr20      11 10_chr20_11
#> 12         10 chr20      12 10_chr20_12
#> 13         10 chr20      13 10_chr20_13
#> 14         10 chr20      14 10_chr20_14
#> 15         10 chr20      15 10_chr20_15
#> 16         10 chr20      16 10_chr20_16
#> 17         10 chr20      17 10_chr20_17
#> 18         10 chr20      18 10_chr20_18
#> 19         10 chr20      19 10_chr20_19
#> 20         10 chr20      20 10_chr20_20
#> 21         10 chr20      21 10_chr20_21
#> 22         10 chr20      22 10_chr20_22
#> 23         10 chr20      23 10_chr20_23
#> 24         10 chr20      24 10_chr20_24
#> 25         10 chr20      25 10_chr20_25
#> 26         10 chr20      26 10_chr20_26
#> 27         10 chr20      27 10_chr20_27
#> 28         10 chr20      28 10_chr20_28
#> 29         10 chr20      29 10_chr20_29
#> 30         10 chr20      30 10_chr20_30
#> 31         10 chr20      31 10_chr20_31
#> 32         10 chr20      32 10_chr20_32
#> 33         10 chr20      33 10_chr20_33
#> 34         10 chr20      34 10_chr20_34
#> 35         10 chr20      35 10_chr20_35
#> 36         10 chr20      36 10_chr20_36
#> 37         10 chr20      37 10_chr20_37
#> 38         10 chr20      38 10_chr20_38
#> 39         10 chr20      39 10_chr20_39
#> 40         10 chr20      40 10_chr20_40
#> 41         10 chr20      41 10_chr20_41
#> 42         10 chr20      42 10_chr20_42
#> 43         10 chr20      43 10_chr20_43
#> 44         10 chr20      44 10_chr20_44
#> 45         10 chr20      45 10_chr20_45
#> 46         20 chr20       1  20_chr20_1
#> 47         20 chr20       2  20_chr20_2
#> 48         20 chr20       3  20_chr20_3
#> 49         20 chr20       4  20_chr20_4
#> 50         20 chr20       5  20_chr20_5
#> 51         20 chr20       6  20_chr20_6
#> 52         20 chr20       7  20_chr20_7
#> 53         20 chr20       8  20_chr20_8
#> 54         20 chr20       9  20_chr20_9
#> 55         20 chr20      10 20_chr20_10
#> 56         20 chr20      11 20_chr20_11
#> 57         20 chr20      12 20_chr20_12
#> 58         20 chr20      13 20_chr20_13
#> 59         20 chr20      14 20_chr20_14
#> 60         20 chr20      15 20_chr20_15
#> 61         20 chr20      16 20_chr20_16
#> 62         20 chr20      17 20_chr20_17
#> 63         20 chr20      18 20_chr20_18
#> 64         20 chr20      19 20_chr20_19
#> 65         20 chr20      20 20_chr20_20
#> 66         20 chr20      21 20_chr20_21
#> 67         20 chr20      22 20_chr20_22
#> 68         30 chr20       1  30_chr20_1
#> 69         30 chr20       2  30_chr20_2
#> 70         30 chr20       3  30_chr20_3
#> 71         30 chr20       4  30_chr20_4
#> 72         30 chr20       5  30_chr20_5
#> 73         30 chr20       6  30_chr20_6
#> 74         30 chr20       7  30_chr20_7
#> 75         30 chr20       8  30_chr20_8
#> 76         30 chr20       9  30_chr20_9
#> 77         30 chr20      10 30_chr20_10
#> 78         30 chr20      11 30_chr20_11
#> 79         30 chr20      12 30_chr20_12
#> 80         30 chr20      13 30_chr20_13
#> 81         30 chr20      14 30_chr20_14
#> 82         30 chr20      15 30_chr20_15
#> 83         40 chr20       1  40_chr20_1
#> 84         40 chr20       2  40_chr20_2
#> 85         40 chr20       3  40_chr20_3
#> 86         40 chr20       4  40_chr20_4
#> 87         40 chr20       5  40_chr20_5
#> 88         40 chr20       6  40_chr20_6
#> 89         40 chr20       7  40_chr20_7
#> 90         40 chr20       8  40_chr20_8
#> 91         40 chr20       9  40_chr20_9
#> 92         40 chr20      10 40_chr20_10
#> 93         40 chr20      11 40_chr20_11
#> 94         50 chr20       1  50_chr20_1
#> 95         50 chr20       2  50_chr20_2
#> 96         50 chr20       3  50_chr20_3
#> 97         50 chr20       4  50_chr20_4
#> 98         50 chr20       5  50_chr20_5
#> 99         50 chr20       6  50_chr20_6
#> 100        50 chr20       7  50_chr20_7
#> 101        50 chr20       8  50_chr20_8
#> 102        50 chr20       9  50_chr20_9