Description Usage Arguments Value Examples
View source: R/get_contacts_matrix.R
This function takes a HiC-BAM file and creates a contact map as a sparse_ matrix
with dimnames
corresponding to the genomic bins
1 2 | get_contacts_matrix(inbam, resolution, region = NULL, pos, whole = F,
filtin = 0, filtex = 783)
|
inbam |
HiC-BAM file |
resolution |
Desired resolution (bin size) |
region |
Region of interest following the format |
pos |
A vector with the genomic position IDs to be included in the output. It can be the column of the output from |
whole |
Logical indicating if the entire available genome should be retrieved (rectangular contact map) or only the region of interest indicated with |
filtin |
Integer value indicating the required bits for the HiC-BAM FLAG (include the corresponding contacts in the output) |
filtex |
Integer value indicating the excluded bits for the HiC-BAM FLAG (exclude the corresponding contacts in the output) |
A named sparse_matrix
containing the number of contacts per pair of genomic bins at the requested region
1 | plot(0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.