Checks whether a given oligopeptide is resolved in the PDB


pdb.pep(pep, pdb)


pep character string corresponding to the sequence of the oligopeptide.

pdb the 4-letter PDB identifier.


The functions returns TRUE if peptide is found in the PDB sequence (and gives the starting position and the chain as attributes), and FALSE otherwise.


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:

When dealing with PDB files, you may run into several challenges. For example, many structures (particular those determined by crystallography) only include information about part of the functional biological assembly. Also, many PDB entries are missing portions of the molecule that were not observed in the experiment. These include structures that include only alpha carbon positions, structures with missing loops, structures of individual domains, or subunits from a larger molecule. For this reazon the function pdb.pep() may be useful if we want to check whether a given segment of the sequence (oligopeptide) is resolved in the structure of interest.

For instance, the in the 3D structure of NADP-dependent malic enzyme (PDB: 3WJA) the first seven N-terminal residues (MEPEAPR) are lacking. This fact can be checked as follows:

pdb.pep(pep = 'MEPEAPR', pdb = '3wja')[[1]]
##   Note: Accessing on-line PDB file
## [1] FALSE

However, the peptide NSQEIQVLRVVK is found in the resolved structure:

pdb.pep(pep = 'NSQEIQVLRVVK', pdb = '3wja')
##   Note: Accessing on-line PDB file
## [1] TRUE
## attr(,"at")
## [1]  42 604
## attr(,"at")attr(,"match.length")
## [1] 12 12
## attr(,"at")attr(,"index.type")
## [1] "chars"
## attr(,"at")attr(,"useBytes")
## [1] TRUE
## attr(,"chain")
## [1] "A" "B"