Hi
I am trying to build the organism package for sheep. At the first i used the codes that was in vignette help page. and so run makeOrgPackage.
makeOrgPackage(gene_info=fSym, chromosome=fChr, go=fGO,
version="1.0.0",
maintainer="Some One <so@someplace.org>",
author="Some One <so@someplace.org>",
outputDir = "E:/test org mak/ovis out dir",
tax_id="9940",
genus="Ovis",
species="aries",
goTable="go")
the package was built and just installed by source type. but it dose not worked. i compared with other correct package and find out that other packages has much more files (stylesheet files) in html folder and my package just have 4 (00Index.html, org.Oaries.eg_dbconn.html , ...).
Any helpful idea will be appreciated.
Thanks

Did you prepare the input files yourselves? I.e.
fSym,fChr, andfGO? Could you show the content of these files usinghead()?How did you conclude that it didn't work? Could you show some code and
sessionInfo()?As a side note: please be informed that through the
AnnotationHuba pre-madeOrgDbfor sheep (based on NCBI Gene IDs) is available:> library(AnnotationHub) > ah <- AnnotationHub() snapshotDate(): 2017-10-27 > query(ah, c("Ovis aries", "OrgDb")) AnnotationHub with 1 record # snapshotDate(): 2017-10-27 # names(): AH59076 # $dataprovider: ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/ # $species: Ovis aries # $rdataclass: OrgDb # $rdatadateadded: 2017-11-24 # $title: org.Ovis_aries.eg.sqlite # $description: NCBI gene ID based annotations about Ovis aries # $taxonomyid: 9940 # $genome: NCBI genomes # $sourcetype: NCBI/UniProt # $sourceurl: ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/, ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/idmapping/id... # $sourcesize: NA # $tags: c("NCBI", "Gene", "Annotation") # retrieve record with 'object[["AH59076"]]' > > > #note that: AH59076 | org.Ovis_aries.eg.sqlite > > #fetch the annotation database > org.Oa.eg.db <- ah[["AH59076"]] > > # check > columns(org.Oa.eg.db) #which annotation data can be retrieved? [1] "ACCNUM" "ALIAS" "CHR" "ENSEMBL" "ENTREZID" "EVIDENCE" "EVIDENCEALL" "GENENAME" "GID" [10] "GO" "GOALL" "ONTOLOGY" "ONTOLOGYALL" "PMID" "REFSEQ" "SYMBOL" "UNIGENE" > > keytypes(org.Oa.eg.db) #which identifiers can be queried with? [1] "ACCNUM" "ALIAS" "ENSEMBL" "ENTREZID" "EVIDENCE" "EVIDENCEALL" "GENENAME" "GID" "GO" [10] "GOALL" "ONTOLOGY" "ONTOLOGYALL" "PMID" "REFSEQ" "SYMBOL" "UNIGENE" > > #example using the first 5 identifiers > select(org.Oa.eg.db, head(keys(org.Oa.eg.db)), c("SYMBOL", "GENENAME", "GO")) 'select()' returned 1:many mapping between keys and columns GID SYMBOL GENENAME GO 1 442992 GLUT4 solute carrier family 2 (facilitated glucose transporter), member 4 <NA> 2 442993 UGT1A9 UDP glucuronosyltransferase 1 family, polypeptide A9 GO:0016021 3 442993 UGT1A9 UDP glucuronosyltransferase 1 family, polypeptide A9 GO:0015020 4 442993 UGT1A9 UDP glucuronosyltransferase 1 family, polypeptide A9 GO:0008152 5 442996 GHRL ghrelin and obestatin prepropeptide GO:0005576 6 442996 GHRL ghrelin and obestatin prepropeptide GO:0016608 7 442997 CXCL10 C-X-C motif chemokine ligand 10 GO:0009897 <<SNIP>> 84 442999 AQP1 aquaporin 1 (Colton blood group) GO:0035377 85 442999 AQP1 aquaporin 1 (Colton blood group) GO:0006833 >Please note that depending on your Bioconductor version the snapshot date may differ. See e.g. A: AnnotationHub, force update snapshot date?.
thanks Dr for your response.
yes, I've made the files. this is the codes:
## Makes an organism package for sheep data.frames:
finchFile <- system.file("extdata","finch_info.txt", package="AnnotationForge")
finch <- read.table(finchFile,sep="\t")
## prepare some data.frames
fSym <- finch[,c(2,3,9)]
fSym <- fSym[fSym[,2]!="-",]
fSym <- fSym[fSym[,3]!="-",]
colnames(fSym) <- c("GID","SYMBOL","GENENAME")
fChr <- finch[,c(2,7)]
fChr <- fChr[fChr[,2]!="-",]
colnames(fChr) <- c("GID","CHROMOSOME")
finchGOFile <- system.file("extdata","GO_finch.txt",package="AnnotationForge")
fGO <- read.table(finchGOFile,sep="\t")
fGO <- fGO[fGO[,2]!="",]
fGO <- fGO[fGO[,3]!="",]
colnames(fGO) <- c("GID","GO","EVIDENCE")
library("AnnotationForge")
## call the function
makeOrgPackage(gene_info=fSym, chromosome=fChr, go=fGO,
version="1.0.0",
maintainer="Some One <so@someplace.org>",
author="Some One <so@someplace.org>",
outputDir = "E:/test org mak/make orge pak/output",
tax_id="9940",
genus="Ovis",
species="aries",
goTable="go")
## install.packages based on the return value
install.packages("org.Oaries.eg.db", repos=NULL , type = "source")
###############################################################
> head(fSym)
GID SYMBOL GENENAME
1 751582 SNCA synuclein, alpha (non A4 component of amyloid precursor)
2 751583 NCALD neurocalcin delta
3 751584 BDNF brain-derived neurotrophic factor
4 751585 CREB1 cAMP responsive element binding protein 1
5 751586 MTNR1A melatonin receptor 1A
6 751588 MTNR1B melatonin receptor 1B
#######################################################
> head(fChr)
GID CHROMOSOME
1 751582 4
2 751583 2
3 751584 5
4 751585 7
5 751586 4
6 751588 1
################################################
> head(fGO)
GID GO EVIDENCE
1 100190152 GO:0008152 IEA
2 100190152 GO:0016310 IEA
3 100190152 GO:0006222 IEA
4 100190152 GO:0015937 IEA
5 100190152 GO:0000166 IEA
6 100190152 GO:0005524 IEA
##############################################
when i ran goseq, found it not work.
> library("org.Oaries.eg.db", lib.loc="C:/Program Files/R/R-3.5.0/library")
Loading required package: AnnotationDbi
Loading required package: Biobase
Welcome to Bioconductor
Vignettes contain introductory material; view with 'browseVignettes()'.
To cite Bioconductor, see 'citation("Biobase")', and for packages
'citation("pkgname")'.
> GO.hiper = goseq("pwf", "oviAri3", "ensGene",method = "Hypergeometric", test.cats="GO:BP",use_genes_without_cat = TRUE)
Fetching GO annotations...
Error in library(paste(orgstring, "db", sep = "."), character.only = TRUE) :
there is no package called ‘NA.db’
########################
sessionInfo()R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] parallel stats4 stats graphics grDevices utils datasets methods
[9] base
other attached packages:
[1] org.Oaries.eg.db_1.0.0 AnnotationDbi_1.42.1 Biobase_2.40.0
[4] rtracklayer_1.40.3 GenomicRanges_1.32.4 GenomeInfoDb_1.16.0
[7] IRanges_2.14.10 S4Vectors_0.18.3 BiocGenerics_0.26.0
[10] goseq_1.32.0 geneLenDataBase_1.16.0 BiasedUrn_1.07
loaded via a namespace (and not attached):
[1] Rcpp_0.12.17 compiler_3.5.0
[3] XVector_0.20.0 prettyunits_1.0.2
[5] GenomicFeatures_1.32.0 bitops_1.0-6
[7] tools_3.5.0 zlibbioc_1.26.0
[9] progress_1.2.0 biomaRt_2.36.1
[11] digest_0.6.15 bit_1.1-14
[13] nlme_3.1-137 RSQLite_2.1.1
[15] memoise_1.1.0 lattice_0.20-35
[17] mgcv_1.8-24 pkgconfig_2.0.1
[19] rlang_0.2.1 Matrix_1.2-14
[21] rstudioapi_0.7 DelayedArray_0.6.1
[23] DBI_1.0.0 yaml_2.1.19
[25] GenomeInfoDbData_1.1.0 httr_1.3.1
[27] stringr_1.3.1 hms_0.4.2
[29] Biostrings_2.48.0 bit64_0.9-7
[31] grid_3.5.0 R6_2.2.2
########################
Thanks for informing me about AnnotationHub. i was planed use it, if i had failed,but i didn't know it contained pre-made OrgDb for sheep.
but i want do it by Annotation Forge too for learning.
thanks a lot for your helps