Description Usage Arguments Details Value
Toghether with DIADEM::simulate_map.HiCglm
function this can be used to create Hi-C contact maps with artificial long range differential interactions (see examples).
1 2 3 4 5 6 7 | sample_alri(
mtx,
N = 100,
max.diag = NA,
radius = 1,
alri.min.dist = 2 * radius + 1
)
|
mtx |
numeric Hi-C contact map in dense format |
N |
numeric number of cells to sample |
max.diag |
numeric specifies diagonal range to sample interactions from |
radius |
numeric number of cells to include in artificial interaction around (left, right, bottom, top or corners) with sampled interaction |
alri.min.dist |
numeric minimum distance (in number of cells left, right, bottom, top or diagonally) between any pair of sampled interactions (between their centers) |
Interaction is a square centered on i,j with height i - radius, ..., i, ..., i + radius and width j - radius, ..., j, ..., j + radius
The minmum distance between any pair of interactions alri.min.dist
is measured as Euclidean distance between centers of 2 intractions (like i1, j1 and i2, j2)
matrix with id, i, j columns indicating artificial long range interactions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.