aa2mass(pdb, inds=NULL, mass.custom=NULL, addter=TRUE, mmtk=FALSE)
pdb
can be
provided. atom.select
that selects the elements of pdb
upon which the calculation
should be based. Convert a sequence of amino acid residue names to mass.
This function converts amino acid residue names to their corresponding
masses. In the case of a non-standard amino acid residue name
mass.custom
can be used to map the residue to the correct
mass. User-defined amino acid masses (with argument mass.custom
)
will override mass entries obtained from the database.
See examples for more details.
When object of type pdb
is provided, non-calpha atom records
are omitted from the selection.
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.
resi.names <- c("LYS", "ALA", "CYS", "HIS") masses <- aa2mass(resi.names, addter=FALSE) ## Fetch atomic masses in a PDB object pdb <- read.pdb("3dnd")Note: Accessing on-line PDB file PDB has ALT records, taking A only, rm.alt=TRUEmasses <- aa2mass(pdb) ## or masses <- aa2mass(pdb$atom[1:10,"resid"]) ## Dealing with unconventional residues #pdb <- read.pdb("1xj0") #mass.cust <- list("CSX"=122.166) #masses <- aa2mass(pdb, mass.custom=mass.cust)