You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came to an error when I was trying to download the Genbank file with an accession ID.
(tsm-py3) tanshiming@S620100019205:~/databases/mam_genes/combined-mam/fna$ ncbi-acc-download -m nucleotide AAL09996
Failed to download file with id AAL09996 from NCBI
Traceback (most recent call last):
File "/home/tanshiming/anaconda3/envs/tsm-py3/bin/ncbi-acc-download", line 10, in <module>
sys.exit(main())
File "/home/tanshiming/anaconda3/envs/tsm-py3/lib/python3.6/site-packages/ncbi_acc_download/__main__.py", line 54, in main
download_to_file(dl_id, config, filename, append)
File "/home/tanshiming/anaconda3/envs/tsm-py3/lib/python3.6/site-packages/ncbi_acc_download/core.py", line 110, in download_to_file
r = get_stream(url, params)
File "/home/tanshiming/anaconda3/envs/tsm-py3/lib/python3.6/site-packages/ncbi_acc_download/download.py", line 90, in get_stream
raise DownloadError("Download failed with return code: {}".format(r.status_code))
ncbi_acc_download.errors.DownloadError: Download failed with return code: 400
Could you please advice? Appreciate your input!
The text was updated successfully, but these errors were encountered:
Hi. I think the issue is that AAL09996 seems to be a protein record and you're requesting a nucleotide entry. This causes the Entrez server to return the error code 400.
I think I need to make the error message more clear for this, sorry about that.
I just realised this is a duplicate #1 for the "enhancement" part. I'll just go ahead and close the issue, but feel free to ask again if you still have questions.
Hello there,
I came to an error when I was trying to download the Genbank file with an accession ID.
Could you please advice? Appreciate your input!
The text was updated successfully, but these errors were encountered: