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

read.accession not working; preparedatabase failed #28

Closed
lcamVz opened this issue Mar 24, 2021 · 3 comments
Closed

read.accession not working; preparedatabase failed #28

lcamVz opened this issue Mar 24, 2021 · 3 comments

Comments

@lcamVz
Copy link

lcamVz commented Mar 24, 2021

I've been trying to get the databases to download and get the taxonomy working.

lastly I got this error.

Reading NCBI_DATABASE/nucl_gb.accession2taxid.gz.
Error in readBin(inn, what = raw(0L), size = 1L, n = BFR.SIZE) :
error reading from the connection
In addition: Warning message:
In readBin(inn, what = raw(0L), size = 1L, n = BFR.SIZE) :
invalid or incomplete compressed data

packageVersion('taxonomizr')
[1] ‘0.6.0’

@sherrillmix
Copy link
Owner

A bit more output might be useful for debugging but that sounds like it may be a download problem. Could you redownload NCBI_DATABASE/nucl_gb.accession2taxid.gz and/or check to see that its filesize is close to the expected 8263483 KB or that its md5 matches:
ftp://ftp.ncbi.nih.gov/pub/taxonomy/accession2taxid/nucl_gb.accession2taxid.gz.md5

@lcamVz
Copy link
Author

lcamVz commented Mar 25, 2021

Thank you for the quick reply.

I manually download them from the ftp and it worked I used wget -i list.txt to get all of the nucleic and protein.

@sherrillmix
Copy link
Owner

That's good it ended up working for you. The package has had a few hard to replicate reports of download problems lately e.g. #27. Not sure what's causing them but I think when I get a chance I'll add an automatic md5 check after the download to at least catch when they happen. Thanks for the bug report.

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