MolecularNodes icon indicating copy to clipboard operation
MolecularNodes copied to clipboard

How to select a specific residue by residue number

Open prateekbansal97 opened this issue 1 year ago • 1 comments

Hello,

I'm sorry if the answer is obvious, but I've been trying to figure out how to select a specific residue by its residue number and show it as ball and sticks. For example, if I want to show residue TRP853 as ball and sticks I'm not sure how to do it. I've been able to select all TRPs in the molecule (using the select by amino acids node available in the selections menu), but haven't been able to figure out how to limit the selection to a specific TRP (TRP853, for example). I'm not even sure if this is possible to do yet, but I'm still trying to see if this is possible.

Any guidance would be super helpful. Thank you so much!

prateekbansal97 avatar Jul 04 '22 21:07 prateekbansal97

Hi @prateekbansal97 thanks for the comment!

It is certainly possible, but it might not be obvious and I haven't covered it in any of the docs or tutorials yet.

There is a property that is the AA_sequence_number and this is the residue numbers. You can use this with a Compare Node. This is a geometry nodes node, not through my Molecular Nodes. You can find in under Utilities -> Compare and and compare to the number that you want. You could also do "Great Than" / "Less Than" to get a range of residue numbers.

Then you put that boolean value (pink) into the Atom Selection node and you will only have the atoms that match that selection.

image

image

image

I'll leave this issue open until I document this properly inside of the docs!

BradyAJohnston avatar Jul 04 '22 23:07 BradyAJohnston