Learn R Programming

HiCfeat (version 1.4)

readDomBed: Read chromatin domain bed file

Description

Function to import a chromatin domain bed file. The bed file must contain coordinates of the chromatin domains. It can be for instance topologically associating domain (TAD) coordinates. In the bed file, the first column is the chromosome, the second column is the starting position of the domain, the third column is the ending position of the domain. The fourth column (optional) is the annotation of the domain (for instance: active, PcG, ...).

Usage

readDomBed(domainBedFile, seqInfoChr)

Arguments

domainBedFile

The name of the bed file. If it does not contain an absolute path, the file name is relative to the current working directory.

seqInfoChr

A Seqinfo object for the corresponding genome.

Value

A GRanges object is returned.

Examples

Run this code
# NOT RUN {
dom_file <- system.file("inst/extdata", "TAD_Corces_1kb_type_p1.bed", package="HiCfeat")
data(dataExample)
seqInfoChr=dataExample$SeqInfoChr
domBed=readDomBed(dom_file,seqInfoChr)
# }

Run the code above in your browser using DataLab