powered by
Write a Sybyl MOL2 file
write.mol2(mol, file = "R.mol2", append = FALSE)
a MOL2 structure object obtained from read.mol2.
read.mol2
the output file name.
logical, if TRUE output is appended to the bottom of an existing file (used primarly for writing multi-model files).
Called for its effect.
See examples for further details.
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.
# NOT RUN { # Read MOL2 file mol <- read.mol2( system.file("examples/aspirin.mol2", package="bio3d") ) # Trim away H-atoms mol <- trim(mol, "noh") # Write new MOL2 file #write.mol2(mol) # }
Run the code above in your browser using DataLab