Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficult to understand documentation with regard to sqlite databases #2

Open
allaway opened this issue Jun 28, 2018 · 2 comments
Open

Comments

@allaway
Copy link

allaway commented Jun 28, 2018

I am trying to annotate some variants using the exac_03 database. I retrieved it using download.database(), but it retrieved the following database: hg19_exac03.sqlite.sql. It's now in my "annovar/humandb" directory.

When I try x <- annotation(dat = dat, anno.name = "exac03", database.dir = "annovar/humandb", db.type = "sqlite")
I get the following error:

Error in dbname.initial(anno.name, dbname.fixed, setdb.fun, buildver,  : 
  annovar/humandb/hg19_exac03.sqlite sqlite format database dose not exist.

Is there a step I am missing between retrieving the db and running annotation? Thanks!

@Miachol
Copy link
Member

Miachol commented Jun 29, 2018

I'm sorry about this. The document of annovarR is incomplete now,

I guess you need to install the SQLite3 before installing the SQLite format exac03 database. If the sqlite or sqlite3 not in PATH, the converting step in download.database may not work.

# After installing SQLite3
annovarR::sql2sqlite('/path/hg19_exac03.sqlite.sql', dbname = '/path/hg19_exac03.sqlite')
# If you have downloaded the text format `hg19_exac03.txt`
sqlite.auto.build("exac03", buildver = hg19"", database.dir = "/path/humandb")`

In fact, you can also use the perl version ANNOVAR to do the exac03 annotation.

x <- annotation(dat = dat, anno.name = "perl_annovar_exac03", database.dir = "~/.annovarR/db", annovar.dir = "/opt/bin/annotation/annovar/20170716/")

@allaway
Copy link
Author

allaway commented Jun 29, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants