powered by
Write a fixedStep wig file
write.wig(chrom, start, score, span = 1, file = NULL, append = FALSE)
A character vector giving chromosome name for each point. Will be recycled to length(start)
An integer vector giving start coordinate for each point.
A numeric vector giving score at each point Will be recycled to length(start)
An integer giving span (ie, length) of each element (all elements must have the same length, so only a single value is allowed).
The name of the file to write to (will be overwritten). A value of NULL implies write to console.
Whether to append to the file. If FALSE, file will be overwritten.
# NOT RUN { write.wig(chrom=c("chr1", "chr1", "chr1", "chr1", "chr2"), start=c(1, 11, 21, 100, 1), span=3, score=runif(5)) # }
Run the code above in your browser using DataLab