downloading full genbank file using Entrez efetch
1
1
Entering edit mode
3.3 years ago
seok1213neo ▴ 20

I am trying to download the full complete genbank file (where it has all the sequences)

using biopython Entrez module.

so far I am writing like the below

with Entrez.efetch (db = "nucleotide", rettype = 'gb', id = "NC_000853.1", retmode = 'text') as gb_file:

but it only seems to download the short version of genbank file.

how should i modify the code so i can downloade the full version of genbank file?

genbank full genbank entrez efetch • 3.1k views
ADD COMMENT
0
Entering edit mode

I don't know if this is possible. I tried your code and I obtained the same as it appears in the NCBI/Genbak site: https://www.ncbi.nlm.nih.gov/nuccore/NC_000853.1/. If you are interested in the whole genome or part of it use a different query.

ADD REPLY
3
Entering edit mode
3.3 years ago
vkkodali_ncbi ★ 3.7k

You need to use rettype = 'gbwithparts' to download the entire record. For more details, see Table 1 in the EFetch documentation

ADD COMMENT

Login before adding your answer.

Traffic: 2498 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6