shuffleHiC | R Documentation |
ShuffleHiC shuffles a matrix from 'select_subset()“ diagonal-wise. That is, every diagonal in the matrix is shuffled independently.
shuffleHiC(MAT, symmetric = T)
MAT |
A Hi-C matrix: can be produced by 'select_subset()'. |
symmetric |
In some special cases you might not want to get a symmetric matrix back. Set this argument on FALSE. |
A shuffled version of the input: either a list with the shuffled 'z' (when using 'select_subset') or a shuffled matrix.
## Not run:
## Shuffle a region on chromosome 1
HiCregion <- select_subset(EXP, chrom = "chr1", start = 15e6, end = 20e6)
HiCregion_shuffled <- shuffleHiC(HiCregion)
# plot observed/expected
image(HiCregion$z / HiCregion_shuffled$z)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.