Colouring different chains and setting spacing using DCCM

Issue #754 new
Former user created an issue

Hi, I have a similar issue to Issue #138. I have a trimer and I would like to colour each monomer differently using dccm.

I tried this:

ch <- ifelse(pdb$atom$chain=="A","B","C")

plot.dccm(cij, resno=pdb, margin.segments=ch)

but it doesn't seem to work.

Additionally, how do I change the spacing? At the moment, the labelling of the axis is automatically set up to every 200 residues. How do I change this?

Thank you

L.

Comments (2)

  1. Xinqiu Yao

    Hi,

    I’m not sure how the DCCM matrix was built, but if it was based on residues (e.g., C-alpha), you should create a “ch” vector matching the dimension. So, a proper way might be ch ← pdb$atom$chain[pdb$calpha])

    Unfortunately, the axis label is currently not allowed to customize in plot.dccm(). We may consider change it in the future.

  2. Log in to comment