Downloads a PDB file (if required) and splits it to provide a file by chain.
Usage
pdb.chain(pdb, keepfiles = FALSE)
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.
Value
The function returns a chr vector where each coordinate is a chain from the structure.