readDomBed: Read chromatin domain bed file

Description Usage Arguments Value Author(s) Examples

View source: R/BorderAnalysisMiscFun.R

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

1
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.

Author(s)

Raphael Mourad

Examples

1
2
3
4
dom_file <- system.file("inst/extdata", "TAD_Corces_1kb_type_p1.bed", package="HiCfeat")
data(dataExample)
seqInfoChr=dataExample$SeqInfoChr
domBed=readDomBed(dom_file,seqInfoChr)

HiCfeat documentation built on May 2, 2019, 2:11 a.m.