importBW: Import density data from BigWigs

Description Usage Arguments Details Value Author(s) Examples

Description

Compute sum score of BigWig files over input genomic regions

Usage

1
importBW(meta, granges, threads)

Arguments

meta

a character vector of file names or a meta object containing a 'file' field.

granges

genomic ranges in either data.frame or granges object. It is supposed to contain four columns, which represent chromosome name, start, end, and ID of the genomic region.

threads

number of cores to use.

Details

'importBW' returns a numeric matrix with each row as the name of genomic loci, and each column as the BigWig files. The matrix contains sum scores of each BigWig file from corresponding genomic locus.

Value

A data frame containing a representation of the density scores of the BigWig files.

Author(s)

Qi Wang

Examples

1
2
3
4
meta <- data.frame(file=c(system.file("data", "test.bw", package="irene"), 
	system.file("data", "ctrl.bw", package="irene")),group=1:2,dataset=1)
bed  <- data.frame(chr=c("chr1","chr1"),start=c(100100,187000),end=c(123000,188000),id=1:2)
data <- importBW(meta, bed)

qwang-big/irene documentation built on May 23, 2019, 1:47 p.m.