I am creating a TxDb annotation package, and I have noticed that even if the organism information used to create the TxDb contains more information than the species and genus, that will not be used in the package name. For example, I create a TxDb object:
url <- "http://plasmodb.org/common/downloads/Current_Release/PbergheiANKA/gff/data/PlasmoDB-24_PbergheiANKA.gff" txdb <- makeTxDbFromGFF( file = url, dataSource = "PlasmoDB 24", organism = "Plasmodium berghei ANKA", chrominfo = <chrominfo> )
Then, I try to create a package with e.g.:
makeTxDbPackage(txdb = txdb, version = "1.0.0", maintainer = "Diego Diez <diego10ruiz@gmail.com>", author = "Diego Diez", destDir = "output/sequence"
which works, but the package is called "TxDb.Pberghei". Inside the DESCRIPTION file I can see the whole organism information has been correctly added:
Package: TxDb.Pberghei Title: Annotation package for TxDb object(s) Description: Exposes an annotation databases generated from Plasmodium berghei ANKA data from PlasmoDB release 24 by exposing these as TxDb objects Version: 1.0.0 Author: Diego Diez Maintainer: Diego Diez Depends: GenomicFeatures (>= 1.20.1) Imports: GenomicFeatures, AnnotationDbi License: Artistic-2.0 organism: Plasmodium berghei ANKA species: Plasmodium berghei ANKA provider: Plasmodium berghei ANKA data from PlasmoDB release 24 provider_version: Plasmodium berghei ANKA data from PlasmoDB release 24 release_date: 2015-05-14 19:05:45 +0900 (Thu, 14 May 2015) resource_url: Plasmodium berghei ANKA data from PlasmoDB release 24 biocViews: AnnotationData, Genetics, TxDb, Plasmodium_berghei_ANKA
So, is there a way to make the package name be TxDb.PbergheiANKA
when creating it with makeTxDbPackage
?
PS: My motivation is several organisms with identical species/genus that end up with identical package names. Other examples:
PPS: Obviously I could change the names manually, but I am looking for a possibly easier way.
> sessionInfo() R version 3.2.0 (2015-04-16) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.10.3 (Yosemite) 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] grid stats4 parallel graphics grDevices utils datasets stats methods [10] base other attached packages: [1] BSgenome_1.36.0 rtracklayer_1.28.2 GenomicFeatures_1.20.1 AnnotationDbi_1.30.1 [5] GenomicRanges_1.20.3 GenomeInfoDb_1.4.0 gtable_0.1.2 motifTools_0.13.0 [9] knitr_1.10.5 ape_3.2 ggtree_1.0.7 Biostrings_2.36.1 [13] XVector_0.8.0 IRanges_2.2.1 S4Vectors_0.6.0 Biobase_2.28.0 [17] BiocGenerics_0.14.0 XML_3.98-1.1 fortunes_1.5-2 dplyr_0.4.1 [21] tidyr_0.2.0 reshape2_1.4.1 ggplot2_1.0.1 lattice_0.20-31 [25] devtools_1.8.0 loaded via a namespace (and not attached): [1] locfit_1.5-9.1 colorspace_1.2-6 DBI_0.3.1 [4] BiocParallel_1.2.1 EBImage_4.10.0 lambda.r_1.1.7 [7] jpeg_0.1-8 plyr_1.8.2 stringr_1.0.0 [10] zlibbioc_1.14.0 futile.logger_1.4.1 munsell_0.4.2 [13] labeling_0.3 biomaRt_2.24.0 BiocInstaller_1.18.2 [16] proto_0.3-10 Rcpp_0.11.6 scales_0.2.4 [19] jsonlite_0.9.16 abind_1.4-3 Rsamtools_1.20.1 [22] gridExtra_0.9.1 png_0.1-7 digest_0.6.8 [25] stringi_0.4-1 tiff_0.1-5 tools_3.2.0 [28] bitops_1.0-6 magrittr_1.5 lazyeval_0.1.10 [31] RCurl_1.95-4.6 RSQLite_1.0.0 futile.options_1.0.0 [34] MASS_7.3-40 assertthat_0.1 rstudioapi_0.3.1 [37] fftwtools_0.9-7 rstudio_0.98.1103 GenomicAlignments_1.4.1 [40] nlme_3.1-120
Hi Keith, thank you for your contribution to this topic. I think you have worded very accurately what seems to be the problem here.