| write.pdb | R Documentation | 
Writes a Protein Data Bank (PDB) coordinate file from an object of class ‘pdb’.
write.pdb(x, file = "Rpdb.pdb")
| x | an object, or a list of objects, of class ‘pdb’. | 
| file | a single element character vector containing the name of the PDB file to be created. | 
All data stored in the ‘pdb’ object are written to a PDB file. A list of objects of class ‘pdb’ can be provided to write multiple MODEL data into a single file. In this case, each ‘pdb’ object of the list must have the same cryst1 and conect components.
To write only a subset of a ‘pdb’ object see function subset.pdb.
No return value, called for side effects.
PDB format is described at: http://www.wwpdb.org/documentation/format33/v3.3.html
read.pdb, pdb, cryst1, atoms, conect, subset.pdb
# Read a PDB file included with the package
pdb <- read.pdb(system.file("examples/PCBM_ODCB.pdb", package="Rpdb"))
# Write the pdb object to file "Rpdb.pdb" in the current directory
write.pdb(pdb, file = "Rpdb.pdb")
# Cleanup
unlink("Rpdb.pdb")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.