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

View source: R/read_bed.r

read_bigwigR Documentation

Import and convert a bigwig file into a valr compatible tbl

Description

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

Usage

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

## Not run: 
if (.Platform$OS.type != "windows") {
  bw <- read_bigwig(valr_example("hg19.dnase1.bw"))
  head(bw)
}

## End(Not run)

valr documentation built on Sept. 19, 2023, 1:07 a.m.