read_bigwig: Import and convert a bigwig file into a valr compatible tbl

Description Usage Arguments Note Examples

View source: R/read_bed.r

Description

This function will output a 5 column tibble with zero-based chrom, start, end, score, and strand columns.

Usage

1
read_bigwig(path, set_strand = "+")

Arguments

path

path to bigWig file

set_strand

strand to add to output (defaults to "+")

Note

This functions uses rtracklayer to import bigwigs which has unstable support for the windows platform and therefore may error for windows users (particularly for 32 bit window users).

Examples

1
2
3
4
5
6
7
## Not run: 
if (.Platform$OS.type != "windows") {
  bw <- read_bigwig(valr_example('hg19.dnase1.bw'))
  head(bw)
}

## End(Not run)

valr documentation built on Dec. 11, 2021, 9:57 a.m.