Description Usage Arguments Value Examples
Load a Hi-C matrix file in sparse or dense format, and output the dense contact matrix.
1 | DataLoad(hicdata, bsparse, species, chr, resolution)
|
hicdata |
a Hi-C matrix file. |
bsparse |
if the Hi-C matrix is in sparse format, bsparse = TRUE, otherwise bsparse = FALSE. |
species |
species name, including "hg19", "hg38", "mm9" and "mm10", the argument needs to be specified only when bsparse = TRUE. |
chr |
chromosome name, such as "chr1", "chr22", "chrX" and "chrY", the argument needs to be specified only when bsparse = TRUE. |
resolution |
resolution of Hi-C matrix, the argument needs to be specified only when bsparse = TRUE. |
A dense contact matrix.
1 2 3 4 5 6 7 8 9 10 11 12 | #Load R package TADBD
library(TADBD)
#Configuration of the parameters, including species, chromsome and resolution
species <- "hg19"
chr <- "chr18"
resolution <- 50000
#Close scientific notation
options(scipen = 999)
#Specify Hi-C data to be loaded
data(hicdata)
#Load a Hi-C contact matrix file in a dense format
hicmat <- DataLoad(hicdata, bsparse = FALSE, species, chr, resolution)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.