Learn R Programming

rphast (version 1.6.9)

write.wig.feat: Write a features object in fixedStep wig format

Description

Write a features object in fixedStep wig format

Usage

write.wig.feat(x, file = NULL, append = FALSE)

Arguments

x

An object of type feat

file

The name of the file to write to. A value of NULL implies write to console.

append

If TRUE, append to the file. Otherwise overwrite.

Examples

Run this code
# NOT RUN {
f <- feat(seqname=c("chr1", "chr1", "chr1", "chr1", "chr2"),
          start=c(1, 11, 21, 100, 1),
          end=c(3, 13, 23, 102, 3),
          score=runif(5))
write.wig.feat(f)
# }

Run the code above in your browser using DataLab