Hi I'm getting an Error in (function (classes, fdef, mtable) :unable to find an inherited method for function ‘dbGetQuery’ for signature ‘"character", "character"’
Below are the exact commands:
> # specify the path to your sequence file:
> fas <- "C:/Users/Hui Yi/Documents/DECIPHER/Acc5alignedname.txt"
> # specify a path for where to write the sequence database
> dbConn <- "C:/Users/Hui Yi/Documents/Acc5database.txt"
> Seqs2DB(fas, "FASTA", dbConn, "Acc5")
Reading FASTA file chunk 1
64 total sequences in table Seqs.
Time difference of 0.14 secs
> # get the FASTA record description
> desc <- dbGetQuery(dbConn, "select description from Seqs")
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘dbGetQuery’ for signature ‘"character", "character"’
What should I do? Thank you
Thank you. I'm using the DECIPHER software and it should be a bioconductor package. the commands were found in its tutorial on designing group specific primers. Do you mean dbconn which is the file ''Acc5database.txt''' should be a DB connection object instead? If so, how do I get a DB connection object?
You did not tag the DECIPHER package in the "Post Tags" so the maintainers would not be notified that there is a potential issue and we did not know that that was the package in question -- tagging something with "software error" is too generic -- the code that you showed ERRORing is from
DBI
. Again -- I would recommend looking at the help documents in theDBI
package that would demonstrate how to create these objects first. If you have further troubles or ERRORs that post those additional comments.For the use of
dbGetQuery()
it is necessary to provide adbConnection
object. That is, you must connect to the database first:Note that SQLite databases usually have the extension ".sqlite" and not ".txt" as they are not ASC-II encoded.
Thanks, I have added the fasta file to the sequence database at datasets.sqlite