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
I tried to substitute the first query with the expression part of the second, but Molstar greeted me with an Error: Can only apply symbols message.
Any hints on how to approach this?
The text was updated successfully, but these errors were encountered:
Hi, this should be possible without too many changes. The example you provided is "broken" because the structure namespace has been renamed to structure-query in Mol*, but mostly the language is the same.
Notable replacements are parsimmon => mol-util/monadic-parser and /molql/builder => mol-script/language/builder's MolScriptBuilder.
Would you be willing to make a PR to the Mol* repository with this and we can make it work there? I am sure other people would appreciate this as well!
Greetings!
I have seen the examples offered at http://molql.org/explorer.html and I would like to integrate the PyMol and VMD transpilers in a Molstar fork that I have. My goal is to allow selections from any language the user prefers, just like in the MolQL explorer. From what I understand, the transpilers produce something pretty close to what Molstar "speaks". For example,
StructureSelectionQueries.water.expression()
(see https://github.com/molstar/molstar/blob/704a9a111dff82e3566276068b1c33505570ccb7/src/mol-plugin-state/helpers/structure-selection-query.ts#L276)returns:
which I can use to add a representation for the waters in a given structure.
On the other hand, water selection in the MolQL explorer yields:
I tried to substitute the first query with the
expression
part of the second, but Molstar greeted me with anError: Can only apply symbols
message.Any hints on how to approach this?
The text was updated successfully, but these errors were encountered: