Error in AnnBuilder writeAnnData2Pkg
2
0
Entering edit mode
Georg Otto ▴ 510
@georg-otto-956
Last seen 10.3 years ago
Dear Bioconductors, I am trying to reproduce the AnnBuilder vignette with my own data from a zebrafish chip. When I try to generate an R data package containing the annotation data > pkgName<-"test" > pkgPath<-getwd() > createEmptyDPkg(pkgName, pkgPath, force=TRUE) > annotation<-as.matrix(annotation) then I get the following error: > writeAnnData2Pkg(annotation, pkgName, pkgPath) Error in assign(x[i], value[[i2]], envir = envir, inherits = inherits) : attempt to use zero-length variable name Could someone give me a hint what is wrong here? Best, Georg P.S. I am on digest mode, cc'ing the answer directly to me would be nice -- Georg Wilhelm Otto Max-Planck-Institute for Developmental Biology Spemannstrasse 35/III D-72076 Tuebingen Germany phone: +49-7071-601 401 http://www.eb.tuebingen.mpg.de
Annotation zebrafish AnnBuilder Annotation zebrafish AnnBuilder • 1.3k views
ADD COMMENT
0
Entering edit mode
John Zhang ★ 2.9k
@john-zhang-6
Last seen 10.3 years ago
> > pkgName<-"test" > > pkgPath<-getwd() > > createEmptyDPkg(pkgName, pkgPath, force=TRUE) > > annotation<-as.matrix(annotation) What did annotation contain? Did annotation have column names? You need to provide us with more information (e. g. R version, AnnBuilder version, more example code) > >then I get the following error: > > > writeAnnData2Pkg(annotation, pkgName, pkgPath) > >Error in assign(x[i], value[[i2]], envir = envir, inherits = inherits) : > attempt to use zero-length variable name > > >Could someone give me a hint what is wrong here? > >Best, > >Georg > >P.S. I am on digest mode, cc'ing the answer directly to me would be nice > > >-- >Georg Wilhelm Otto >Max-Planck-Institute for Developmental Biology >Spemannstrasse 35/III >D-72076 Tuebingen Germany >phone: +49-7071-601 401 >http://www.eb.tuebingen.mpg.de > >_______________________________________________ >Bioconductor mailing list >Bioconductor@stat.math.ethz.ch >https://stat.ethz.ch/mailman/listinfo/bioconductor Jianhua Zhang Department of Medical Oncology Dana-Farber Cancer Institute 44 Binney Street Boston, MA 02115-6084
ADD COMMENT
0
Entering edit mode
Dear John, sorry, I forgot to give this information: R 2.0.1 on Mac OS 10.2.8 AnnBuilder 1.4.21 Here are the first two lines of the annotation matrix. For reasons that I do not understand, the first line is empty. Could this be the reason for the error? And is there a way to circumvent this? > annotation[1:2,] PROBE ACCNUM LOCUSID UNIGENE "" "" "NA" "NA" CGENZEB_456000002_0 "CGENZEB_456000002_0" "AF030031" "30131" "Dr.30326" GENENAME SYMBOL CHR MAP PMID GRIF "NA" "NA" "NA" "NA" "NA" "NA" CGENZEB_456000002_0 "deltaA" "dla" "1" "NA" "12890499;12835391;12477932" "NA" SUMFUNC "NA" CGENZEB_456000002_0 "NA" GO "NA" CGENZEB_456000002_0 "GO:0005509@IEA;GO:0007154@IEA;GO:0009880@IMP;GO:0016020@IEA;GO:000551 5@ IDA" OMIM REFSEQ "NA" "NA" CGENZEB_456000002_0 "NA" "NM_130954;NP_571029" Best, Georg > >>> pkgName<-"test" >>> pkgPath<-getwd() >>> createEmptyDPkg(pkgName, pkgPath, force=TRUE) >>> annotation<-as.matrix(annotation) > > What did annotation contain? Did annotation have column names? You > need to > provide us with more information (e. g. R version, AnnBuilder version, > more > example code) > > >> >> then I get the following error: >> >>> writeAnnData2Pkg(annotation, pkgName, pkgPath) >> >> Error in assign(x[i], value[[i2]], envir = envir, inherits = >> inherits) : >> attempt to use zero-length variable name >> >> >> Could someone give me a hint what is wrong here? >> >> Best, >> >> Georg >> >> P.S. I am on digest mode, cc'ing the answer directly to me would be >> nice -- Georg Wilhelm Otto Max-Planck-Institute for Developmental Biology Spemannstrasse 35/III D-72076 Tuebingen Germany phone: +49-7071-601 401 http://www.eb.tuebingen.mpg.de
ADD REPLY
0
Entering edit mode
John Zhang ★ 2.9k
@john-zhang-6
Last seen 10.3 years ago
I believe that in your base file there was a line with "" for probe and ACC ids. Remove the first row of annotation (annotation <- annotation[2:nrow(annotation),]) and try the code again. >Here are the first two lines of the annotation matrix. For reasons that >I do not understand, the first line is empty. Could this be the reason >for the error? And is there a way to circumvent this? > > > annotation[1:2,] > PROBE ACCNUM LOCUSID UNIGENE > "" "" "NA" "NA" >CGENZEB_456000002_0 "CGENZEB_456000002_0" "AF030031" "30131" "Dr.30326" > GENENAME SYMBOL CHR MAP PMID > GRIF > "NA" "NA" "NA" "NA" "NA" > "NA" >CGENZEB_456000002_0 "deltaA" "dla" "1" "NA" >"12890499;12835391;12477932" "NA" > SUMFUNC > "NA" >CGENZEB_456000002_0 "NA" > GO > "NA" >CGENZEB_456000002_0 >"GO:0005509@IEA;GO:0007154@IEA;GO:0009880@IMP;GO:0016020@IEA;GO:00055 15@ >IDA" > OMIM REFSEQ > "NA" "NA" >CGENZEB_456000002_0 "NA" "NM_130954;NP_571029" > > >Best, > >Georg > > >> >>>> pkgName<-"test" >>>> pkgPath<-getwd() >>>> createEmptyDPkg(pkgName, pkgPath, force=TRUE) >>>> annotation<-as.matrix(annotation) >> >> What did annotation contain? Did annotation have column names? You >> need to >> provide us with more information (e. g. R version, AnnBuilder version, >> more >> example code) >> >> >>> >>> then I get the following error: >>> >>>> writeAnnData2Pkg(annotation, pkgName, pkgPath) >>> >>> Error in assign(x[i], value[[i2]], envir = envir, inherits = >>> inherits) : >>> attempt to use zero-length variable name >>> >>> >>> Could someone give me a hint what is wrong here? >>> >>> Best, >>> >>> Georg >>> >>> P.S. I am on digest mode, cc'ing the answer directly to me would be >>> nice > > > >-- >Georg Wilhelm Otto >Max-Planck-Institute for Developmental Biology >Spemannstrasse 35/III >D-72076 Tuebingen Germany >phone: +49-7071-601 401 >http://www.eb.tuebingen.mpg.de Jianhua Zhang Department of Medical Oncology Dana-Farber Cancer Institute 44 Binney Street Boston, MA 02115-6084
ADD COMMENT
0
Entering edit mode
Thanks a lot, John! In fact in my base file there were quite a few empty lines that I missed. I changed the basefile and now it works. Best, Georg > I believe that in your base file there was a line with "" for probe > and ACC ids. > Remove the first row of annotation (annotation <- > annotation[2:nrow(annotation),]) and try the code again. > >> Here are the first two lines of the annotation matrix. For reasons >> that >> I do not understand, the first line is empty. Could this be the reason >> for the error? And is there a way to circumvent this? >> >>> annotation[1:2,] >> PROBE ACCNUM LOCUSID UNIGENE >> "" "" "NA" "NA" >> CGENZEB_456000002_0 "CGENZEB_456000002_0" "AF030031" "30131" >> "Dr.30326" >> GENENAME SYMBOL CHR MAP PMID >> GRIF >> "NA" "NA" "NA" "NA" "NA" >> "NA" >> CGENZEB_456000002_0 "deltaA" "dla" "1" "NA" >> "12890499;12835391;12477932" "NA" >> SUMFUNC >> "NA" >> CGENZEB_456000002_0 "NA" >> GO >> "NA" >> CGENZEB_456000002_0 >> "GO:0005509@IEA;GO:0007154@IEA;GO:0009880@IMP;GO:0016020@IEA;GO:000551 >> 5@ >> IDA" >> OMIM REFSEQ >> "NA" "NA" >> CGENZEB_456000002_0 "NA" "NM_130954;NP_571029" >> >> >> Best, >> >> Georg >> >> >>> >>>>> pkgName<-"test" >>>>> pkgPath<-getwd() >>>>> createEmptyDPkg(pkgName, pkgPath, force=TRUE) >>>>> annotation<-as.matrix(annotation) >>> >>> What did annotation contain? Did annotation have column names? You >>> need to >>> provide us with more information (e. g. R version, AnnBuilder >>> version, >>> more >>> example code) >>> >>> >>>> >>>> then I get the following error: >>>> >>>>> writeAnnData2Pkg(annotation, pkgName, pkgPath) >>>> >>>> Error in assign(x[i], value[[i2]], envir = envir, inherits = >>>> inherits) : >>>> attempt to use zero-length variable name >>>> >>>> >>>> Could someone give me a hint what is wrong here? >>>> >>>> Best, >>>> >>>> Georg >>>> >>>> P.S. I am on digest mode, cc'ing the answer directly to me would be >>>> nice >> >> -- Georg Wilhelm Otto Max-Planck-Institute for Developmental Biology Spemannstrasse 35/III D-72076 Tuebingen Germany phone: +49-7071-601 401 http://www.eb.tuebingen.mpg.de
ADD REPLY

Login before adding your answer.

Traffic: 478 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6