an object of class 'mmds', obtained from mmds function.
project
an object of class 'project', obtained from mmds.project function, or a list of object of class 'project'.
axis
a numeric vector of length three the principal components to be displayed. Default is c(1, 2, 3).
file.pdb
a string of characters indicating the output PDB file name. Default is "R.pdb".
file.pml
a string of characters indicating the output pml file name for visualization with Pymol. If this parameter is not NULL, the pml file will be written. Default is NULL.
Details
The elements can be visualized in three dimensions (3D) with a molecular viewer as Pymol or Rasmol.
If x contains active and supplementary elements, the active and supplementary elements are numbered from 1 and from 5001, respectively. If group is not NULL, the assignment of an element to a group is indicated by the chain name from A for the first group to Z when the maximum number of groups, 26, is reached.
The pml file allows a fancy visualization of the PDB file with the Pymol molecular viewer. The user must first open the PDB file with Pymol, then run the pml file. The active and inactive elements will be displayed as spheres and crosses, respectively, with coloring based on the user-provided colors with the col.group function.
Value
Produces a PDB file from the MDS coordinates, with the elements numbered in the order of the MSA file and the groups corresponding to the chain numbers. Optionnaly, produces a pml file to add color and group selection in pymol with the pdb file.
# writing the first three MDS coordinates of human GPCRs in a PDB file
data(gpcr)
write.mmds.pdb(gpcr$mmds$sapiens.active,file.pdb="sapiens.pdb",file.pml="sapiens.pml")