move_contacts: Move contacts to given pair of interacting regions

Description Usage Arguments Value

Description

Randomly selects N contacts from i xor j bins of given mtx.sparse Hi-C contact map and moves them to cell (i, j). This method of producing artificial LRI preserves coverage of initial Hi-C contact map.

Usage

1
move_contacts(mtx.sparse, i, j, N)

Arguments

mtx.sparse

data frame - Hi-C contact map in sparse format with columns: i, j, val, diagonal, name

i

numeric first region (row of Hi-C contact map)

j

numeric second region (column of Hi-C contact map)

N

numeric number of contacts to be moved from regions i xor j to interaction (i,j)

Value

data frame with the same columns as mtx.sparse


rz6/CopulaHiC documentation built on Dec. 31, 2019, 9:19 a.m.