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

Possible empty tables in the current SQLite file #35

Open
chappers2 opened this issue Oct 7, 2020 · 0 comments
Open

Possible empty tables in the current SQLite file #35

chappers2 opened this issue Oct 7, 2020 · 0 comments

Comments

@chappers2
Copy link

I posted a question to Bioconductor support asking for help because getSRA() was returning empty tables from the full SQLite file, but not the demo. There was a response that suggested that the current SQLite file contains empty tables, as suggested by the following code:

con <- dbConnect(SQLite(), "SRAmetadb.sqlite")
sapply(dbListTables(con), function(x) nrow(dbGetQuery(con, paste("select * from", x, "limit 10;"))))
col_desc experiment fastq metaInfo run
10 10 10 2 10
sample sra sra_ft sra_ft_content sra_ft_segdir
10 10 0 0 0
sra_ft_segments study submission
0 10 10

as compared to the file that comes with SRAdb

con2 <- dbConnect(SQLite(), file.path(system.file('extdata', package='SRAdb'),'SRAmetadb_demo.sqlite'))
sapply(dbListTables(con), function(x) nrow(dbGetQuery(con2, paste("select * from", x, "limit 10;"))))
col_desc experiment fastq metaInfo run
10 10 10 2 10
sample sra sra_ft sra_ft_content sra_ft_segdir
10 10 10 10 1
sra_ft_segments study submission
10 10 10

I was able to reproduce this on my system using the SQLite file from https://s3.amazonaws.com/starbuck1/sradb/SRAmetadb.sqlite.gz and from https://gbnci-abcc.ncifcrf.gov/backup/SRAmetadb.sqlite.gz.

Does this diagnosis appear correct? If so, can it be easily fixed?

With many thanks

Mike.

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

1 participant