Write a WIG file
write_wig(x, file)
A GRanges object
File name, URL or connection specifying a file to write x to. Compressed files with extensions such as '.gz' are handled automatically.
The write function returns a WIGFile invisibly.
rtracklayer::WIGFile()