write.mol2(mol, file = "R.mol2", append = FALSE)
read.mol2
. Write a Sybyl MOL2 file
See examples for further details.
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.
# Read MOL2 file mol <- read.mol2( system.file("examples/aspirin.mol2", package="bio3d") ) # Trim away H-atoms mol <- trim(mol, "noh")Summary of PDB generation: .. number of atoms in PDB determined by 'xyz' .. 0 atom(s) from 'string' selection .. 0 atom(s) in final combined selection .. number of atoms in PDB: 20 .. number of calphas in PDB: 0 .. number of residues in PDB: 1# Write new MOL2 file #write.mol2(mol)