11 February 2016 7 861 Report

Dear valued scientists,

I am trying to write a simple python script which parses certain uniprot entries using the biopython module. this is what I got so far:

from Bio import SeqIO

import urllib

handle = urllib.urlopen("http://www.uniprot.org/uniprot/P12345.xml")

record = SeqIO.read(handle, "uniprot-xml")

#print(record)

print(record.name)

This script will simply print the Entry Name of "P12345". Now I would like to extract information like subcellular location, which is included in the Uniprot entry.

Can anyone give an advice on how to proceed?

Thank you and best regards,

Helge

More Helge Meyer's questions See All
Similar questions and discussions