Description Usage Arguments Value Author(s) Examples
Bins HiC Reads in a Data Frame into Chromosome-Pair Count Matrices
1 2 3 4 5 6 |
data |
An N-by-K data.frame with
characters columns |
bin_size |
(integer) The bin size (in basepairs). |
intra_only |
(logical) If |
known_chrs |
(character vector) The names of the L chromosomes to bin over. |
If intra_only = FALSE
, an L-by-L list matrix where each element (i, j) in turn
holds an integer matrix of binned counts for chromosome pair (i, j).
If intra_only = TRUE
, an L list where each element i in turn
holds an integer matrix of binned counts for intra-chromosome pair (i, i).
Henrik Bengtsson adopted from a script by Adam Olshen who proposed
to use base::table(chr_a, chr_b)
for efficient two-dimensional binning.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.