[Biopython-dev] Consumer of "KW" in embl format

Xabier Bello xbello at gmail.com
Tue Mar 12 09:36:35 UTC 2013


Hi:

I don't know if this is the right way to do this. The code:

records = SeqIO.parse(open("MyFile.embl", "r"), "embl")
for record in records:
    print record.annotations["keywords"]

Doesn't work

I've added to Bio/GenBank/Scanner.py, in _feed_header_lines():

elif line_type == 'KW':
    consumer.keywords(data.rstrip(";"))

And now it seems to parse the keyword lines.

Regards.



More information about the Biopython-dev mailing list