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

Entrez.email #69

Open
OP-0 opened this issue Apr 14, 2022 · 0 comments
Open

Entrez.email #69

OP-0 opened this issue Apr 14, 2022 · 0 comments

Comments

@OP-0
Copy link

OP-0 commented Apr 14, 2022

I think there is a missing line in the entrez.py file.

`import sys
from Bio import Entrez
from Bio import SeqIO

params_genbank_ids = sys.argv[1]
params_email = sys.argv[2]
output_reference = sys.argv[3]
output_taxonomy = sys.argv[4]

with open(output_reference, 'w') as refs, open(output_taxonomy, 'w') as taxes:
for genbank_id in params_genbank_ids:
`
... Might have been ...

`import sys
from Bio import Entrez
from Bio import SeqIO

params_genbank_ids = [1]
params_email = sys.argv[2]
output_reference = sys.argv[3]
output_taxonomy = sys.argv[4]

Entrez.email=params_email

with open(output_reference, 'w') as refs, open(output_taxonomy, 'w') as taxes:
for genbank_id in params_genbank_ids:`

... Otherwise it throws off an error:

To make use of NCBI's E=utilities, NCBI requires you to specify your email address with each request...

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