View source: R/evaluateCorrDecay.R

evaluateCorrDecay | R Documentation |

For pairs of features evaluate the physical distance and the correlation

```
evaluateCorrDecay(treeList, gr, chromArray = seqlevels(gr), verbose = TRUE)
```

`treeList` |
list of hclust objects |

`gr` |
GenomicRanges object corresponding to features clustered in treeList |

`chromArray` |
Use this only this set of chromosmes. Can substantially reduce memory usage |

`verbose` |
show progress |

a data.frame of distance and correlation value for all pairs of features already evalauted in treeList. Note that runOrderedClusteringGenome() that returns treeList only evalutes correlation between a specified number of adjacent peaks

```
library(GenomicRanges)
library(ggplot2)
data('decorateData')
# Evaluate hierarchical clustering
treeList = runOrderedClusteringGenome( simData, simLocation )
# Evaluate how correlation between features decays with distance
dfDist = evaluateCorrDecay( treeList, simLocation )
# make plot
plotCorrDecay( dfDist )
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.