DataLoad: Load a Hi-C matrix file in sparse or dense format, and output...

Description Usage Arguments Value Examples

View source: R/DataLoad.R

Description

Load a Hi-C matrix file in sparse or dense format, and output the dense contact matrix.

Usage

1
DataLoad(hicdata, bsparse, species, chr, resolution)

Arguments

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.

Value

A dense contact matrix.

Examples

 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)

bioinfo-lab/TADBD documentation built on March 15, 2020, 8:53 a.m.