atom.names <- c("CA", "O", "N", "OXT")
atom2ele(atom.names)
## Get atomic symbols from a PDB object with a customized data set
pdb <- read.pdb("3RE0",verbose=FALSE)
inds <- atom.select(pdb, resno=201, verbose=FALSE)
## maps CL2 to C
atom2ele(pdb, inds, elety.custom = NULL)
## map CL2 to Cl manually
myelety <- data.frame(name = "CL2", symb = "Cl")
atom2ele(pdb, inds, elety.custom = myelety)
Run the code above in your browser using DataLab