read_bigwig: Read data from bigWig files.

View source: R/read.r

read_bigwigR Documentation

Read data from bigWig files.

Description

Read data from bigWig files.

Usage

read_bigwig(bwfile, chrom = NULL, start = NULL, end = NULL, as = NULL)

Arguments

bwfile

filename for bigWig file

chrom

read data for specific chromosome

start

start position for data

end

end position for data

as

return data as a specific type. The default is a tibble (tbl) or GRanges (gr)

Value

tibble

See Also

https://github.com/dpryan79/libBigWig

https://github.com/brentp/bw-python

Examples

bw <- system.file("extdata", "test.bw", package = "cpp11bigwig")

read_bigwig(bw)

read_bigwig(bw, chrom = "10")

read_bigwig(bw, chrom = "1", start = 100, end = 130)

read_bigwig(bw, as = "GRanges")


cpp11bigwig documentation built on April 3, 2025, 7:35 p.m.