Learn R Programming

cpp11bigwig (version 0.1.1)

read_bigwig: Read data from bigWig files.

Description

Read data from bigWig files.

Usage

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

Value

tibble

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)

See Also

Examples

Run this code
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")

Run the code above in your browser using DataLab