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

Error from read.names.sql #14

Closed
kgun12 opened this issue Sep 24, 2019 · 3 comments

Comments

@kgun12
Copy link

commented Sep 24, 2019

I'm building a new accessionTaxa.sql db with protein accessions and get the following error:

library(taxonomizr)

getNamesAndNodes()
trying URL 'ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz'
Content type 'unknown' length 49900153 bytes (47.6 MB)
==================================================
[1] "./names.dmp" "./nodes.dmp"

getAccession2taxid(types='prot')
This can be a big (several gigabytes) download. Please be patient and use a fast connection.
trying URL 'ftp://ftp.ncbi.nih.gov/pub/taxonomy/accession2taxid//prot.accession2taxid.gz'
Content type 'unknown' length 5572900471 bytes (5314.7 MB)
==================================================
[1] "./prot.accession2taxid.gz"

read.names.sql('names.dmp','accessionTaxa.sql') read.nodes.sql('nodes.dmp','accessionTaxa.sql')
Error: unexpected symbol in "read.names.sql('names.dmp','accessionTaxa.sql') read.nodes.sql"

Any help appreciated...

@sherrillmix

This comment has been minimized.

Copy link
Owner

commented Sep 24, 2019

Looks like R is complaining that you have two lines concatenated together. Make sure that:

read.names.sql('names.dmp','accessionTaxa.sql') read.nodes.sql('nodes.dmp','accessionTaxa.sql')

is on two distinct lines:

read.names.sql('names.dmp','accessionTaxa.sql')
read.nodes.sql('nodes.dmp','accessionTaxa.sql')
@kgun12

This comment has been minimized.

Copy link
Author

commented Sep 24, 2019

/facepalm... I missed that entirely!!

Thanks for the useful tool!

Looks like R is complaining that you have two lines concatenated together. Make sure that:

read.names.sql('names.dmp','accessionTaxa.sql') read.nodes.sql('nodes.dmp','accessionTaxa.sql')

is on two distinct lines:

read.names.sql('names.dmp','accessionTaxa.sql')
read.nodes.sql('nodes.dmp','accessionTaxa.sql')
@sherrillmix

This comment has been minimized.

Copy link
Owner

commented Sep 25, 2019

No problem. Glad it's working for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.