Hello every one,
I'm working with a file with a large number of PDB identifiers and for each of the identifiers I have two or more chains. What I want is to get a list with the Uniprot entry name corresponding to each of the chains.
I want an automatic way to iterate over a file in python to incorporate in an script that I have.
If someone can help I will thank a lot
Albert
Wow that's amazing but is not what I really want. The uniprot entry name that I'm looking for has this format:
HBA_HUMAN
EDIT: Thanks for the help
EDIT2: I solved the problem like this:
You can get that name by changing line 22 from:
to:
Yep is more or less what i have done. I just want to thank you for your help (In this and other posts)
Hi i'm having a problem right now with the script.
The problem is the next:
When having as input a PDB code plus a chain, for instance 2VLJ.E on the PDB website appears to have a chain but in some cases the pdb chain is not linked to any Uniprot Entry Name.
I would like to know how to ignore the cases when a chain have no hits or to raise a warning without killing the program
Hi..! Thank you for such a nice code to get UniProt. Could you please edit the function to get the Organism of a given chain?