Hey guys , I hope you are doing well. I am working on a project of phosphorylation ,and I am creating a database of some proteins. I have a list of protein accession ids ,and I need to get the corresponding PDB code for each one . I want to get them by the code of python or biopython tools. Please , any suggestion will really be appreciated . Thanks
If your protein identifiers are from UniProtKB, you can use the UniProt IDmapping or Batch retrieve service at https://www.uniprot.org/uploadlists. You can either map from UniProtKB to PDB, or from UniProtKB to UniProtKB and then customize your results by adding a column for PDB cross-references and removing any unwanted ones. Results can be downloaded in various formats, and the service can also be used programmatically: https://www.uniprot.org/help/api
If you have any additional questions about UniProt, please don't hesitate to contact the UniProt helpdesk. See also this thread: How to get PDB ID from sequence accession number ?