Returns the uniprot id of a given chain within a PDB structure


pdb2uniprot(pdb, chain)


pdb the 4-letter PDB identifier.

chain letter identifying the chain.


The function returns the UniProt ID for the chain of interest.

See Also

uniprot2pdb(), id.mapping()


The ptm package contains a number of ancillary functions that deal with Protein Data Bank (PDB) files. These functions may be useful when structural 3D data need to be analyzed. The mentioned functions are:

One of the most basic operations consists of interconversion between identifiers. For instance, suppose we have a PDB file containing information about the structure of the human deoxyhaemoglobin (2HHB) and we want to know the UniProt IDs of their constitutive polypeptide chains.

for (chain in pdb.chain('2hhb')){
  cat(pdb2uniprot('2hhb', chain), '\n')
  |                                                                                                |   0%
  |========================                                                                        |  25%
  |================================================                                                |  50%
  |========================================================================                        |  75%
  |================================================================================================| 100%
## P69905 
## P68871 
## P69905 
## P68871

We observe that this protein es a heterotetramer formed by two types of polypeptide whose UniProt IDs are given above.

If we don't care about the chains, and all we want is the UniProt IDs for all the polypeptides present in the PDB file, we can use:

id.mapping('2hhb', from = 'pdb', to = 'uniprot')
## [1] "P68871" "P69905"