Last chance! 50% off unlimited learning
Sale ends in
pdbsplit(pdb.files, ids = NULL, path = "split_chain", overwrite=TRUE,
verbose = FALSE, ncore = 1, ...)
ncore>1
requires package read.pdb
. Useful e.g. for
parsing multi model PDB files, including ALT records etc. in the
output files. Note that multi model atom records will only split into individual
PDB files if multi=TRUE
, else they are omitted. See examples.
read.pdb
, atom.select
,
write.pdb
, get.pdb
.## Save separate PDB files for each chain of a local or on-line file
pdbsplit( get.pdb("2KIN", URLonly=TRUE) )
## Split several PDBs by chain ID and multi-model records
raw.files <- get.pdb( c("1YX5", "3NOB") , URLonly=TRUE)
chain.files <- pdbsplit(raw.files, path=tempdir(), multi=TRUE)
basename(chain.files)
## Output only desired pdbID_chainID combinations
## for the last entry (1f9j), fetch all chains
ids <- c("1YX5_A", "3NOB_B", "1F9J")
raw.files <- get.pdb( ids , URLonly=TRUE)
chain.files <- pdbsplit(raw.files, ids, path=tempdir())
basename(chain.files)
Run the code above in your browser using DataLab