molstar / molstar

A comprehensive macromolecular library

Home Page:https://molstar.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to connect 2 atoms from different residues.

kalraUtkarsh opened this issue · comments

I want to connect two specific atoms in a molecule, and I know which residues and chains they are in. How can I define the type of line (like a dashed blue line) to show this connection?

For example I want to connect O6 of G 24 from chain A and N3 of C 27 from chain B with a dashed line in blue colour.

Please let me know if there are already some examples out there for such things, I tried a lot but couldn't manage to find.

Thank You

There is no "easy", readily available solution. Look at the measurement representation for an approach (e.g. src\mol-repr\shape\loci\distance.ts).