This is a test version of Biostars. For the public version, visit https://www.biostars.org.
downloading full genbank file using Entrez efetch

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

1 answer

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

Log in to answer this question.