50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

HiCglmi (version 1.4)

readGFBed: Read genomic feature bed file

Description

Function to import a genomic feature bed file. The bed file must contain coordinates of the genomic features. It can be for instance ChIP-seq peak coordinates or functional element coordinates.

Usage

readGFBed(GFBedFile, seqInfoChr)

Arguments

GFBedFile

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 {
bed_file <- system.file("inst/extdata", "BEAF32_Kc167_CS_dm3.bed", package="HiCfeat")
data(dataExample)
seqInfoChr=dataExample$SeqInfoChr
GFBed=readGFBed(bed_file,seqInfoChr)
# }

Run the code above in your browser using DataLab