read_bigwig {valr} | R 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)
[Package valr version 0.8.1 Index]