Learn R Programming

rphast (version 1.6.9)

write.feat: Writing a features Object

Description

Write a features object to a file in GFF format.

Usage

write.feat(x, file)

Arguments

x

an object of type feat

file

The name of the file to write to (will be overwritten)

Examples

Run this code
# NOT RUN {
seq <- rep("hg18.chr6", 10)
src <- rep("fake_example", 10)
feature <- rep("CDS", 10)
start <- seq(1, 100, by=10)
end <- seq(10, 100, by=10)
f <- feat(seq, src, feature, start, end)
write.feat(f, "test.gff")

unlink("test.gff") # clean up
# }

Run the code above in your browser using DataLab