atom.select in a pdbs object
It is possible to use atom.select in a pdbs object by pdbaln? Thanks in advance
Comments (4)
-
-
Currently not, as we don't have a pdbs method for atom.select(). I can see that this would be useful but potentially confusing as the individual structures stored in a given pdbs object can be quite heterogenous. Can you maybe describe what you would like the ability to select by? For example, would it be sufficient to select based on the first structure only or would the ability to select on any structure be useful?
Currently if one wanted to select a given residue range in all structures you would query the pdbs$resno component focusing on your favorite structure, e.g.
## Quick example **pdbs** class object > pdbs <- pdbaln( get.pdb(c("4q21","5p21"), URLonly=TRUE) ) ## Select positions coresponding to residue numbers 90:95 in first structure > atom.inds <- which(pdbs$resno[1,] %in% 90:95) > xyz.inds <- atom2xyz(atom.inds) ## RMSD for this segment after fitting on this segment > rmsd(pdbs$xyz[,xyz.inds], fit=TRUE ) [,1] [,2] [1,] 0.000 0.102 [2,] 0.102 0.000
-
I have the same protein with differents non synonimous variants (wild type and many mutants structures. All the proteins structures were previously refined. I would like to focus in the effect of this mutations in one domain. So in this case i guess trim.pdb could be usefull, because i would like to conserve the initial structure. Thanks
-
- changed status to resolved
Marking as resolved and adding a note to the ToDo wiki page about developing a atom.select.pdbs() in the future.
- Log in to comment
Nope. But you can easily access various columns in the pdbs object
You can also use function
trim.pdbs
to make a subset of your pdbs object:note that
row.inds
andcol.inds
refer to indices of thepdbs$ali
matrix in which data for each structure is stored row wise. thus, use the row.inds to fetch a subset of structures, and col.inds to trim the structures to desired residues.