| WriteGenes {DECIPHER} | R Documentation |
Writes predicted genes to a file in GenBank (gbk) or general feature format (gff).
WriteGenes(x,
file = "",
format = "gbk",
append = FALSE)
x |
An object of class |
file |
A connection or a character string naming the file path where the tree should be exported. If "" (the default), the tree is printed to the standard output connection, the console unless redirected by sink. |
format |
Character specifying |
append |
Logical indicating whether to append to an existing |
WriteGenes will write a "Genes" object to a GenBank (if format is "gbk") or general feature format (if format is "gff") file.
NULL.
Erik Wright eswright@pitt.edu
ExtractGenes, FindGenes, Genes-class
# import a test genome
fas <- system.file("extdata",
"Chlamydia_trachomatis_NC_000117.fas.gz",
package="DECIPHER")
genome <- readDNAStringSet(fas)
x <- FindGenes(genome)
WriteGenes(x[1:10,], format="gbk")
WriteGenes(x[1:10,], format="gff")