Objective: I am following 'C. Differential Expression' file from bioconductor workshop, Apr, 2015 (section 5. Reduction, Setup, part c). Would like to create a TxDb object from the GFF3 file (ftp://ftp.ensemblgenomes.org/pub/plants/release-26/gff3/setaria_italica/) for the Setaria italica genome used to align reads and using the TxDb to get all exons, grouped by gene.
I ran the following code getting the following error:
> path <- "/Users/bterry/macbookpro2015/keenanres15/Sitalica/genome/gff3_ver26"
> gff3file <- file.path(path, "Setaria_italica.JGIv2.0.26.gff3")
> gff3file
[1] "/Users/bterry/macbookpro2015/keenanres15/Sitalica/genome/gff3_ver26/Setaria_italica.JGIv2.0.26.gff3"
> library(GenomicFeatures)
> txdb <- makeTxDbFromGFF(gff3file, format="gtf", circ_seqs=character())
Error: could not find function "makeTxDbFromGFF"
> sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.9.5 (Mavericks)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats4 parallel stats graphics grDevices utils datasets
[8] methods base
other attached packages:
[1] GenomicFeatures_1.18.7 AnnotationDbi_1.28.1 Biobase_2.26.0
[4] GenomicRanges_1.18.3 GenomeInfoDb_1.2.3 IRanges_2.0.0
[7] S4Vectors_0.4.0 BiocGenerics_0.12.1
loaded via a namespace (and not attached):
[1] base64enc_0.1-2 BatchJobs_1.5 BBmisc_1.8
[4] BiocParallel_1.0.0 biomaRt_2.22.0 Biostrings_2.34.0
[7] bitops_1.0-6 brew_1.0-6 checkmate_1.5.0
[10] codetools_0.2-10 DBI_0.3.1 digest_0.6.6
[13] fail_1.2 foreach_1.4.2 GenomicAlignments_1.2.1
[16] iterators_1.0.7 RCurl_1.95-4.5 Rsamtools_1.18.2
[19] RSQLite_1.0.0 rtracklayer_1.26.3 sendmailR_1.2-1
[22] stringr_0.6.2 tools_3.1.3 XML_3.98-1.1
[25] XVector_0.6.0 zlibbioc_1.12.0
>
Looking through the GenomicFeatures vignette, I find mention of makeTxDbFromUCSC and makeTxDbFromBiomart, but no mention of makeTxDbFromGFF?
Thanks for comments,
Hi Philip,
Looks like your file is GFF, not GTF. Try again with
format="gff3"
(which is actually the default).Cheers,
H.