Errors in makeOrgPackage
1
@knishida-8230
Last seen 4.7 years ago
United States
I'm trying to create a custom OrgDb for tomato.
First I tried to add Uniprot table to the OrgDb with
https://github.com/kozo2/org.Sl.eg.db/blob/master/tomatoMakeOrgPkg.R
but I had an error like
May I ask for any advice?
I checked this error on R 3.2.2 + Annotation Forge 1.12.0 on Windows 10 and Mac OS X El Capitan.
You can reproduce this error with the following commands.
git clone git://github.com/kozo2/org.Sl.eg.db
cd org.Sl.eg.db
R
> install.packages("splitstackshape")
> source("https://bioconductor.org/biocLite.R")
> biocLite("AnnotationForge")
> source("tomatoMakeOrgPkg.R")
annotation
error
• 1.4k views
@james-w-macdonald-5106
Last seen 1 hour ago
United States
> fUniprot <- as.data.frame(fUniprot)
> library(AnnotationForge)
> #makeOrgPackage(gene_info = fSym, chromosome = fChr, go = fGO,
> # this does NOT work
> makeOrgPackage(gene_info = fSym, chromosome = fChr, go = fGO, uniprot = fUniprot,
+ version = "0.1",
+ maintainer = "Kozo Nishida <knishida@riken.jp>",
+ author = "Kozo Nishida <knishida@riken.jp>",
+ outputDir = ".",
+ tax_id = "4081",
+ genus = "Solanum",
+ species = "lycopersicum",
+ goTable = "go")
Populating genes table:
genes table filled
Populating gene_info table:
gene_info table filled
Populating chromosome table:
chromosome table filled
Populating go table:
go table filled
Populating uniprot table:
uniprot table filled
table metadata filled
Loading required package: GO.db
'select()' returned many:1 mapping between keys and columns
Dropping GO IDs that are too new for the current GO.db
Populating go table:
go table filled
'select()' returned many:1 mapping between keys and columns
Populating go_all table:
go_all table filled
Creating package in ./org.Slycopersicum.eg.db
Login before adding your answer.
Traffic: 682 users visited in the last hour
It seems like the function is expecting a
data.frame
, but fUniprot is adata.table
(fromcSplit()
)?Many thanks for your advise.
I replaced it to data.frame it works well now.
https://github.com/kozo2/org.Sl.eg.db/issues/1