molstar / molstar

A comprehensive macromolecular library
https://molstar.org
MIT License
599 stars 140 forks source link

How to connect 2 atoms from different residues. #1131

Open kalraUtkarsh opened 4 weeks ago

kalraUtkarsh commented 4 weeks ago

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

arose commented 4 weeks ago

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