Learn R Programming

ptm (version 0.2.7)

pdb.chain: Download and/or Split PDB Files.

Description

Downloads a PDB file (if required) and splits it to provide a file by chain.

Usage

pdb.chain(pdb, keepfiles = FALSE)

Value

The function returns a chr vector where each coordinate is a chain from the structure.

Arguments

pdb

the path to the PDB of interest or a 4-letter identifier.

keepfiles

logical, if TRUE the function makes a 'temp' directory within the current directory and save in it a pdb file for each chain present in the given structure.

Author

Juan Carlos Aledo

Examples

Run this code
if (FALSE) pdb.chain('1bpl')

Run the code above in your browser using DataLab