Bio.Entrez.efetch return all annotated features
0
0
Entering edit mode
5.8 years ago
kksaw • 0

Hi, sorry I am relatively new to Biopython and was wondering if there was a parameter to get all annotated features, instead of just the abbreviated view when using Biopython's Entrez.efetch function?

For example, handle = Entrez.efetch(db='nucleotide', rettype='gb', retmode='text', id='CH482384.1') returns only the abbreviated view.

Is there an appropriate Entrez.readlines() function for when rettype='ft', retmode='text' or rettype='native', retmode='xml'?

Entrez.readlines() raises the errorIncompleteRead: IncompleteRead(0 bytes read)

Thank you!

Valid values for rettype and retmode from NCBI's E Utilities help page

biopython • 2.4k views
ADD COMMENT
0
Entering edit mode

ncbi was broken last time i tried to fetch all the annotations :-( see fetch -complete- genbank file using biopython

ADD REPLY
0
Entering edit mode

It works! Thanks so much. All I had to do was set rettype='gbwithparts'.

ADD REPLY

Login before adding your answer.

Traffic: 1471 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