Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wigToBigWig

Convert WIG to BigWig


Description

This function calls the Kent C library to efficiently convert a WIG file to a BigWig file, without loading the entire file into memory. This solves the problem where simple tools write out text WIG files, instead of more efficiently accessed binary BigWig files.

Usage

wigToBigWig(x, seqinfo,
            dest = paste(file_path_sans_ext(x, TRUE), "bw", sep = "."),
            clip = FALSE)

Arguments

x

Path or URL to the WIG file. Connections are not supported.

seqinfo

Seqinfo object, describing the genome of the data. All BigWig files must have this defined.

dest

The path to which to write the BigWig file. Defaults to x with the extension changed to “bw”.

clip

If TRUE, regions outside of seqinfo will be clipped, so that no error is thrown.

Author(s)

Michael Lawrence

See Also

BigWig import and export support


rtracklayer

R interface to genome annotation files and the UCSC genome browser

v1.50.0
Artistic-2.0 + file LICENSE
Authors
Michael Lawrence, Vince Carey, Robert Gentleman
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.