Entering edit mode
10.2 years ago
gustavoborin01
▴
90
Hi everyone. I'm trying to convert a GFF3 annotation file to GFF format, using the command lines below on rtracklayer package, but I'm not successfull. Does anyone could help me with this? I'm new on R.
annotation_path <- system.file("annotation", package = "rtracklayer")
annotation_gff3 <- file.path(test_path, "TrireRUTC30_1_GeneCatalog_genes_20110526.fix2.gff3")
test <- import(annotation_gff3)
export(test,"annotation.gtf","gtf")
Thanks a lot!
Gustavo P.
I've tried this, but I can't find any GFF output file. I have to set a directory for the output file? Sorry about my inexperience. I'm a master student and I'm trying to convert this file to use as a object in the rsubread package.
No, the files will be created in your working directory, but you are using the same filename of the input file and therby overwriting it:
should it be
.gff2
?