Hot to change atom number to residue numbering in dccm plot?

Issue #639 resolved
Former user created an issue

Hallo everyone,

I have been trying to plot dccm considering the residue number instead of atoms, but i did not succeed. Can anyone help me with that?

Cheers, Nubia

Comments (2)

  1. Xinqiu Yao

    Normally, 'dccm' is calculated based on C-alpha atoms and so in the plot the labels are already residue numbers. But, if you calculated atom wise dccm, you should be able to re-label axes with the resno argument of the plot.dccm() function. resno should be a vector having the same length of the number of atoms and contains residue numbers of atoms (Thereby, you will see repeated numbers for atoms of the same residue, e.g. 1, 1, 1, 1, 1,1, 2, 2,2... You can get this vector from the corresponding pdb object, i.e. pdb$atom$resno). See help(plot.dccm) for more details.

  2. Log in to comment