Problem with AnnotationDbi::loadAnnDbPkgIndex()
1
0
Entering edit mode
cstrato ★ 3.9k
@cstrato-908
Last seen 6.2 years ago
Austria
Dear all, I am trying to understand how AnnotationDbi works and have the following problem with function loadAnnDbPkgIndex(): 1, This works ok: > tmp <- loadAnnDbPkgIndex() > dim(tmp) [1] 123 14 2, However, the following results in an error: > tmp <- loadAnnDbPkgIndex("/Volumes/CoreData/CRAN/Bioconductor/packages/hu6800 .db/inst/extdata/hu6800.sqlite") Error in read.dcf(tmp_file) : Line starting 'SQLite format 3 ...' is malformed! In addition: Warning message: In readLines(infile, n = 1) : incomplete final line found on '/Volumes/CoreData/CRAN/Bioconductor/packages/hu6800.db/inst/extdata/h u6800.sqlite' Maybe, I misunderstand something but the help file for makeAnnDbPkg() has the following example: > makeAnnDbPkg(seed, "path/to/hgu133a2.sqlite") Looking at the source code of makeAnnDbPkg() I get: setMethod("makeAnnDbPkg", "character", function(x, dbfile, dest_dir=".", no.man=FALSE, ...) { if (missing(dbfile)) { dbfile <- system.file("extdata", "GentlemanLab", "ANNDBPKG-INDEX.TXT", package="AnnotationDbi") } index <- loadAnnDbPkgIndex(dbfile) etc } As you see 'dbfile="path/to/hgu133a2.sqlite"' is passed directly to loadAnnDbPkgIndex(dbfile). Do I miss something? Best regards Christian _._._._._._._._._._._._._._._._._._ C.h.r.i.s.t.i.a.n S.t.r.a.t.o.w.a V.i.e.n.n.a A.u.s.t.r.i.a e.m.a.i.l: cstrato at aon.at _._._._._._._._._._._._._._._._._._
AnnotationDbi AnnotationDbi • 727 views
ADD COMMENT
0
Entering edit mode
cstrato ★ 3.9k
@cstrato-908
Last seen 6.2 years ago
Austria
Dear all, I just realized the example applies to method: setMethod("makeAnnDbPkg", "AnnDbPkgSeed", function(x, dbfile, dest_dir=".", no.man=FALSE, ...) Sorry for bothering you. Christian On 7/25/10 7:22 PM, cstrato wrote: > Dear all, > > I am trying to understand how AnnotationDbi works and have the following > problem with function loadAnnDbPkgIndex(): > > 1, This works ok: > > > tmp <- loadAnnDbPkgIndex() > > dim(tmp) > [1] 123 14 > > > 2, However, the following results in an error: > > > tmp <- > loadAnnDbPkgIndex("/Volumes/CoreData/CRAN/Bioconductor/packages/hu68 00.db/inst/extdata/hu6800.sqlite") > > Error in read.dcf(tmp_file) : > Line starting 'SQLite format 3 ...' is malformed! > In addition: Warning message: > In readLines(infile, n = 1) : > incomplete final line found on > '/Volumes/CoreData/CRAN/Bioconductor/packages/hu6800.db/inst/extdata /hu6800.sqlite' > > > > Maybe, I misunderstand something but the help file for makeAnnDbPkg() > has the following example: > > > makeAnnDbPkg(seed, "path/to/hgu133a2.sqlite") > > Looking at the source code of makeAnnDbPkg() I get: > > setMethod("makeAnnDbPkg", "character", > function(x, dbfile, dest_dir=".", no.man=FALSE, ...) > { > if (missing(dbfile)) { > dbfile <- system.file("extdata", "GentlemanLab", "ANNDBPKG- INDEX.TXT", > package="AnnotationDbi") > } > index <- loadAnnDbPkgIndex(dbfile) > etc > } > > As you see 'dbfile="path/to/hgu133a2.sqlite"' is passed directly to > loadAnnDbPkgIndex(dbfile). > Do I miss something? > > Best regards > Christian > _._._._._._._._._._._._._._._._._._ > C.h.r.i.s.t.i.a.n S.t.r.a.t.o.w.a > V.i.e.n.n.a A.u.s.t.r.i.a > e.m.a.i.l: cstrato at aon.at > _._._._._._._._._._._._._._._._._._ > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor >
ADD COMMENT

Login before adding your answer.

Traffic: 609 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