Writing a wig file

Description

Write a fixedStep wig file

Usage

1
write.wig(chrom, start, score, span = 1, file = NULL, append = FALSE)

Arguments

chrom

A character vector giving chromosome name for each point. Will be recycled to length(start)

start

An integer vector giving start coordinate for each point.

score

A numeric vector giving score at each point Will be recycled to length(start)

span

An integer giving span (ie, length) of each element (all elements must have the same length, so only a single value is allowed).

file

The name of the file to write to (will be overwritten). A value of NULL implies write to console.

append

Whether to append to the file. If FALSE, file will be overwritten.

Author(s)

Melissa J. Hubisz

Examples

1
2
3
4
write.wig(chrom=c("chr1", "chr1", "chr1", "chr1", "chr2"),
          start=c(1, 11, 21, 100, 1),
          span=3,
          score=runif(5))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.