wigToBigWig: Convert WIG to BigWig

Description Usage Arguments Author(s) See Also

View source: R/bigWig.R

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

1
2
3
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 documentation built on Nov. 8, 2020, 6:50 p.m.