You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am dealing with multiple models and complex selections and I think something is not working as expected, possibly due to the way I build my selections.
First a general question about selections:
I have generated many selections like so, and they all seemed to work so far, selecting the correct residues in the right chains in the specific model.
sel = {model: activeModel, resi: protResi, chain: protChain, resn: protResn};
Now, I am playing with AND and OR gates to do more detailed selections and I just wondered: is this first selection the same as this second one?
sel = {and:[{model: activeModel}, {resi: protResi}, {chain: protChain}, {resn: protResn}]};
The issue I have is that when I apply the model to the union of those selections I generated in the loop like so:
The style is also applied to another model, which is unexpected, as in each one of the selections in ligandSitesHash[activeModel][ligNam] I specify the model: activeModel.
This is the array containing the different selections:
and somehow the style is applied to another model (not 96) too.
Thanks a lot!
The text was updated successfully, but these errors were encountered:
I have noticed that when I pass {model: 96, resi: 49, chain: 'A', resn: 'LEU'}
directly as the selection, the styles apply only to model 96. However, when I include multiple selections with OR like so: {or:[{model: 96, resi: 49, chain: 'A', resn: 'LEU'}, {model: 96, resi: 51, chain: 'A', resn: 'THR'}]}
or even just the one using OR: {or:[{model: 96, resi: 49, chain: 'A', resn: 'LEU'}]}
the styles apply to my other model too. This made me think that perhaps there is an issue with the way the logic is implemented for the OR gate.
Hi, I am dealing with multiple models and complex selections and I think something is not working as expected, possibly due to the way I build my selections.
First a general question about selections:
I have generated many selections like so, and they all seemed to work so far, selecting the correct residues in the right chains in the specific model.
Now, I am playing with
AND
andOR
gates to do more detailed selections and I just wondered: is this first selection the same as this second one?The issue I have is that when I apply the model to the union of those selections I generated in the loop like so:
The style is also applied to another model, which is unexpected, as in each one of the selections in
ligandSitesHash[activeModel][ligNam]
I specify themodel: activeModel
.This is the array containing the different selections:
and somehow the style is applied to another model (not 96) too.
Thanks a lot!
The text was updated successfully, but these errors were encountered: