io-bigwig-write: Write a BigWig file

Description Usage Arguments Value See Also Examples

Description

This is a lightweight wrapper to the export family of functions defined in rtracklayer.

Usage

1

Arguments

x

A GRanges object

file

File name, URL or connection specifying a file to write x to. Compressed files with extensions such as '.gz' are handled automatically.

Value

The write functions return a BigWigFile invisibly

See Also

rtracklayer::BigWigFile()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
 if (.Platform$OS.type != "windows") {
  test_path <- system.file("tests", package = "rtracklayer")
  bw_file <- file.path(test_path, "test.bw")
  gr <- read_bigwig(bw_file)
  gr
  bw_out <- file.path(tempdir(), "test_out.bw")
  write_bigwig(gr ,bw_out)
  read_bigwig(bw_out)
 }

## End(Not run)

plyranges documentation built on Nov. 8, 2020, 7:36 p.m.