powered by
write.mol2(mol, file = "R.mol2", append = FALSE)
read.mol2
# 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