Description Usage Arguments Value Examples
import_wig
reads a WIG (wiggle) file and
expands the data into long format, i.e., the each observation in the returned
tibble pertains the position of one single base.
1 | import_wig(file_path, n = -1L)
|
file_path |
A path to a WIG file. |
n |
The (maximal) number of lines to read. Negative values indicate that one should read up to the end of input on the connection. |
A tibble of three variables: chr
, chromosome; pos
, genomic
position; and val
, value. Chromosome positions are 1-relative, i.e. the
first base is 1, as specified in WIG files.
1 2 3 4 5 6 7 8 | # Import a WIG file
wig_file <- system.file(
"extdata",
file = 'hg19-pik3ca.wig',
package = "wig",
mustWork = TRUE)
import_wig(wig_file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.